diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-09-23 11:49:04 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-09-23 11:49:04 -0230 |
commit | 83ede0edd22a3debf30779780a1070dfe01fc88e (patch) | |
tree | fa0dfa8b58243364b76c55d93443a7cff4f92631 /cpp/src/IceUtil/StringUtil.cpp | |
parent | bug 4217 - improve __cmp__ method in Python generated code (diff) | |
download | ice-83ede0edd22a3debf30779780a1070dfe01fc88e.tar.bz2 ice-83ede0edd22a3debf30779780a1070dfe01fc88e.tar.xz ice-83ede0edd22a3debf30779780a1070dfe01fc88e.zip |
Bug 3972 - reduced trace level for some output and other minor cleanup
Diffstat (limited to 'cpp/src/IceUtil/StringUtil.cpp')
-rw-r--r-- | cpp/src/IceUtil/StringUtil.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/StringUtil.cpp b/cpp/src/IceUtil/StringUtil.cpp index b83d6dc8a79..2b79f251360 100644 --- a/cpp/src/IceUtil/StringUtil.cpp +++ b/cpp/src/IceUtil/StringUtil.cpp @@ -369,6 +369,21 @@ IceUtilInternal::splitString(const string& str, const string& delim, vector<stri return true; } +string +IceUtilInternal::joinString(const std::vector<std::string>& values, const std::string& delimiter) +{ + ostringstream out; + for(unsigned int i = 0; i < values.size(); i++) + { + if(i != 0) + { + out << delimiter; + } + out << values[i]; + } + return out.str(); +} + // // Trim white space (" \t\r\n") // |