From b50d79542c95ab88387418b34999e942e6b6a583 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 11 Jan 2014 01:30:05 +0100 Subject: db/upnp: move stringToTokens() to Util.cxx --- src/db/upnp/Util.hxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/db/upnp/Util.hxx') diff --git a/src/db/upnp/Util.hxx b/src/db/upnp/Util.hxx index 3cdc57cd5..08fe5f497 100644 --- a/src/db/upnp/Util.hxx +++ b/src/db/upnp/Util.hxx @@ -20,7 +20,10 @@ #ifndef MPD_UPNP_UTIL_HXX #define MPD_UPNP_UTIL_HXX +#include "Compiler.h" + #include +#include std::string caturl(const std::string& s1, const std::string& s2); @@ -31,6 +34,11 @@ trimstring(std::string &s, const char *ws = " \t\n"); std::string path_getfather(const std::string &s); +gcc_pure +std::vector +stringToTokens(const std::string &str, + const char *delims = "/", bool skipinit = true); + template bool csvToStrings(const std::string& s, T &tokens); -- cgit v1.2.3