48 auto parent = sub.
containsChar (L
'/') ? sub.upToLastOccurrenceOf (
"/",
false,
false)
int64 hashCode64() const noexcept
Generates a probably-unique 64-bit hashcode from this string.
InputStream * createInputStream(bool doPostLikeRequest, OpenStreamProgressCallback *progressCallback=nullptr, void *progressCallbackContext=nullptr, String extraHeaders={}, int connectionTimeOutMs=0, StringPairArray *responseHeaders=nullptr, int *statusCode=nullptr, int numRedirectsToFollow=5, String httpRequestCmd={}) const
Attempts to open a stream that can read from this URL.
URL getChildURL(const String &subPath) const
Returns a new URL that refers to a sub-path relative to this one.
bool containsChar(juce_wchar character) const noexcept
Tests whether the string contains a particular character.
String toString(bool includeGetParameters) const
Returns a string version of the URL.
URL withNewSubPath(const String &newPath) const
Returns a new version of this URL with a different sub-path.
String getSubPath(bool includeGetParameters=false) const
Returns the path part of the URL.
Represents a URL and has a bunch of useful functions to manipulate it.