48 auto parent = sub.
containsChar (
L'/') ? sub.upToLastOccurrenceOf (
"/",
false,
false)
int64 hashCode64() const noexcept
Generates a probably-unique 64-bit hashcode from this string.
bool containsChar(juce_wchar character) const noexcept
Tests whether the string contains a particular character.
Represents a URL and has a bunch of useful functions to manipulate it.
URL getChildURL(const String &subPath) const
Returns a new URL that refers to a sub-path relative to this one.
String toString(bool includeGetParameters) const
Returns a string version of the URL.
String getSubPath(bool includeGetParameters=false) const
Returns the path part of the URL.
URL withNewSubPath(const String &newPath) const
Returns a new version of this URL with a different sub-path.
std::unique_ptr< InputStream > createInputStream(const InputStreamOptions &options) const
Attempts to open a stream that can read from this URL.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...
long long int64
A platform-independent 64-bit integer type.