MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / getMangledParameters

Function getMangledParameters

JUCE/modules/juce_core/network/juce_URL.cpp:235–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233namespace URLHelpers
234{
235 static String getMangledParameters (const URL& url)
236 {
237 jassert (url.getParameterNames().size() == url.getParameterValues().size());
238 String p;
239
240 for (int i = 0; i < url.getParameterNames().size(); ++i)
241 {
242 if (i > 0)
243 p << '&';
244
245 auto val = url.getParameterValues()[i];
246
247 p << URL::addEscapeChars (url.getParameterNames()[i], true);
248
249 if (val.isNotEmpty())
250 p << '=' << URL::addEscapeChars (val, true);
251 }
252
253 return p;
254 }
255
256 static int findEndOfScheme (const String& url)
257 {

Callers 2

getQueryStringMethod · 0.85

Calls 4

addEscapeCharsFunction · 0.85
getParameterValuesMethod · 0.80
sizeMethod · 0.45
isNotEmptyMethod · 0.45

Tested by

no test coverage detected