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

Method withNewSubPath

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

Source from the content-addressed store, hash-verified

421}
422
423URL URL::withNewSubPath (const String& newPath) const
424{
425 URL u (*this);
426
427 auto startOfPath = URLHelpers::findStartOfPath (url);
428
429 if (startOfPath > 0)
430 u.url = url.substring (0, startOfPath);
431
432 URLHelpers::concatenatePaths (u.url, newPath);
433 return u;
434}
435
436URL URL::getParentURL() const
437{

Callers 3

createInputStreamForMethod · 0.80
connectMethod · 0.80
createConnectionMethod · 0.80

Calls 3

findStartOfPathFunction · 0.85
concatenatePathsFunction · 0.85
substringMethod · 0.45

Tested by

no test coverage detected