diff options
author | methodus <methodus@web.de> | 2012-09-26 00:45:33 +0200 |
---|---|---|
committer | methodus <methodus@web.de> | 2012-09-26 00:45:33 +0200 |
commit | 4cd5debf236f4d4315cce30c4cd11e392f00886a (patch) | |
tree | 5235f9cf3dceb44453ba31c1f1644aed5cd9b6d8 /common | |
parent | 4ff5f1b52b27d7b86d77ce956d79a1453810385b (diff) | |
download | vdr-plugin-upnp-4cd5debf236f4d4315cce30c4cd11e392f00886a.tar.gz vdr-plugin-upnp-4cd5debf236f4d4315cce30c4cd11e392f00886a.tar.bz2 |
Added streamer interface which connects the webserver with the resource provider.
Diffstat (limited to 'common')
-rw-r--r-- | common/tools.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/tools.cpp b/common/tools.cpp index 7ddfc4f..d64b86b 100644 --- a/common/tools.cpp +++ b/common/tools.cpp @@ -137,6 +137,21 @@ string GenerateUUIDRandomly(){ return uuid.str(); } +void StringExplode(string str, string separator, StringVector results) { + int found; + found = str.find_first_of(separator); + while(found != string::npos){ + if(found > 0){ + results.push_back(str.substr(0,found)); + } + str = str.substr(found+1); + found = str.find_first_of(separator); + } + if(str.length() > 0){ + results.push_back(str); + } +} + } // namespace tools namespace ixml { |