From 464767c5fd0671b93f97f79905bdfb987826f6ef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Jan 2014 11:37:52 +0100 Subject: db/upnp/Util: move caturl() to util/UriUtil.cxx --- src/util/UriUtil.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/util/UriUtil.hxx') diff --git a/src/util/UriUtil.hxx b/src/util/UriUtil.hxx index 8e00f8cd8..c2cc97a63 100644 --- a/src/util/UriUtil.hxx +++ b/src/util/UriUtil.hxx @@ -77,4 +77,12 @@ gcc_pure gcc_nonnull_all bool uri_is_child_or_same(const char *parent, const char *child); +/** + * Translate the given URI in the context of #base. For example, + * uri_apply_base("foo", "http://bar/a/")=="http://bar/a/foo". + */ +gcc_pure +std::string +uri_apply_base(const std::string &uri, const std::string &base); + #endif -- cgit v1.2.3