|
static std::string | resolve (const std::string &base, const std::string &relative, bool useBaseQuery=false, bool assumeHttpsDefault=true) |
|
static std::string | addQuery (const std::string &uri, const std::string &key, const std::string &value) |
|
static std::string | getQueryValue (const std::string &uri, const std::string &key) |
|
static std::string | substituteTemplateParameters (const std::string &templateUri, const std::function< SubstitutionCallbackSignature > &substitutionCallback) |
|
static std::string | escape (const std::string &s) |
| Escapes a portion of a URI, percent-encoding disallowed characters. More...
|
|
static std::string | unescape (const std::string &s) |
| Unescapes a portion of a URI, decoding any percent-encoded characters. More...
|
|
static std::string | unixPathToUriPath (const std::string &unixPath) |
| Converts a Unix file system path to a string suitable for use as the path portion of a URI. Characters that are not allowed in the path portion of a URI are percent-encoded as necessary. More...
|
|
static std::string | windowsPathToUriPath (const std::string &windowsPath) |
| Converts a Windows file system path to a string suitable for use as the path portion of a URI. Characters that are not allowed in the path portion of a URI are percent-encoded as necessary. More...
|
|
static std::string | nativePathToUriPath (const std::string &nativePath) |
| Converts a file system path on the current system to a string suitable for use as the path portion of a URI. Characters that are not allowed in the path portion of a URI are percent-encoded as necessary. More...
|
|
static std::string | uriPathToUnixPath (const std::string &uriPath) |
| Converts the path portion of a URI to a Unix file system path. Percent-encoded characters in the URI are decoded. More...
|
|
static std::string | uriPathToWindowsPath (const std::string &uriPath) |
| Converts the path portion of a URI to a Windows file system path. Percent-encoded characters in the URI are decoded. More...
|
|
static std::string | uriPathToNativePath (const std::string &uriPath) |
| Converts the path portion of a URI to a file system path on the current system. Percent-encoded characters in the URI are decoded. More...
|
|
static std::string | getPath (const std::string &uri) |
| Gets the path portion of the URI. This will not include path parameters, if present. More...
|
|
static std::string | setPath (const std::string &uri, const std::string &newPath) |
| Sets the path portion of a URI to a new value. The other portions of the URI are left unmodified, including any path parameters. More...
|
|
Definition at line 7 of file Uri.h.
static std::string CesiumUtility::Uri::windowsPathToUriPath |
( |
const std::string & |
windowsPath | ) |
|
|
static |
Converts a Windows file system path to a string suitable for use as the path portion of a URI. Characters that are not allowed in the path portion of a URI are percent-encoded as necessary.
Either /
or \
may be used as a path separator on input, but the output will contain only /
.
If the path is absolute (it starts with a slash or with C:\ or similar), then the URI will start with a slash well.
- Parameters
-
windowsPath | The file system path. |
- Returns
- The URI path.