Encodes all (non-slash) special characters in a URI path.
Makes sure the input path has exactly 1 slash at the end. Multiple slashes will get merged into one. If there is no slash it will be added.
Path to check.
The potentially changed path.
Checks if the identifier corresponds to a container identifier.
Identifier to check.
Checks if the path corresponds to a container path (ending in a /).
Path to check.
Adds the paths to the base path.
The base path (POSIX or Windows).
Subpaths to attach (POSIX).
The potentially changed path (POSIX).
Resolves relative segments in the path/
Path to check (POSIX or Windows).
The potentially changed path (POSIX).
Converts a URI path to the canonical version by splitting on slashes, decoding any percent-based encodings, and then encoding any special characters.
Converts the path into an OS-dependent path.
Path to check (POSIX).
The potentially changed path (OS-dependent).
Makes sure the input path has no slashes at the end.
Path to check.
The potentially changed path.
Decodes all components of a URI path.