MUQ  0.4.3
StringUtilities.h
Go to the documentation of this file.
1 #ifndef MUQSTRINGUTILITIES_H
2 #define MUQSTRINGUTILITIES_H
3 
4 #include <string>
5 #include <vector>
6 
7 namespace muq {
8  namespace Utilities{
9 
10  namespace StringUtilities{
11 
13  std::vector<std::string> Split(std::string str, char delim = ',');
14 
16  std::string Strip(std::string str);
17 
19  std::string Combine(std::vector<std::string> strs, char delim = ',');
20 
21  }
22  }
23 }
24 
25 
26 #endif //#ifndef MUQSTRINGUTILITIES_H
std::string Combine(std::vector< std::string > strs, char delim=',')
Combine a vector of strings with a specified delimiter. The opposite of Split.
std::string Strip(std::string str)
Strip the whitespace off the beginning and end of a string.
std::vector< std::string > Split(std::string str, char delim=',')
Split a string into parts based on a particular character delimiter. Also Strips whitespace from part...