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