20 #ifndef MPD_URI_UTIL_HXX
21 #define MPD_URI_UTIL_HXX
94 uri_is_child(
const char *parent,
const char *child) noexcept;
gcc_pure gcc_nonnull_all const char * uri_get_path(const char *uri) noexcept
Returns the URI path (including the query string) or nullptr if the given URI has no path...
gcc_pure bool uri_has_scheme(const char *uri) noexcept
Checks whether the specified URI has a scheme in the form "scheme://".
gcc_pure bool uri_safe_local(const char *uri) noexcept
Returns true if this is a safe "local" URI:
gcc_pure const char * uri_get_suffix(const char *uri) noexcept
gcc_pure std::string uri_apply_base(const std::string &uri, const std::string &base) noexcept
Translate the given URI in the context of #base.
gcc_pure gcc_nonnull_all bool uri_is_child(const char *parent, const char *child) noexcept
Check whether #child specifies a resource "inside" the directory specified by #parent.
gcc_pure gcc_nonnull_all bool uri_is_child_or_same(const char *parent, const char *child) noexcept
gcc_pure std::string uri_remove_auth(const char *uri) noexcept
Removes HTTP username and password from the URI.
gcc_pure std::string uri_get_scheme(const char *uri) noexcept
Returns the scheme name of the specified URI, or an empty string.
const Storage const char * uri