From 129b19f69fbbdcd896150aa8faa7f20254169c0c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Apr 2012 21:56:58 +0300 Subject: Add to log draw backend name. Add ability to get free video memory (fast openg with NVIDIA). Add test with id 100 for long perfomance testing. --- src/utils/stringutils.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/utils/stringutils.cpp') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index fcafd7711..1808ea173 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -460,6 +460,19 @@ void splitToStringVector(StringVect &tokens, const std::string &text, } } +void splitToStringSet(std::set &tokens, const std::string &text, + char separator) +{ + std::stringstream ss(text); + std::string item; + while (std::getline(ss, item, separator)) + { + item = trim(item); + if (!item.empty()) + tokens.insert(item); + } +} + std::string combineDye(std::string file, std::string dye) { if (dye.empty()) -- cgit v1.2.3-70-g09d2