]> git.tdb.fi Git - libs/core.git/blob - source/utils.h
1823f667c7914e863b7c08426fa572ec884bee2d
[libs/core.git] / source / utils.h
1 #ifndef MSP_STRINGS_UTILS_H_
2 #define MSP_STRINGS_UTILS_H_
3
4 #include <string>
5 #include <vector>
6
7 namespace Msp {
8
9 int strcasecmp(const std::string &, const std::string &);
10 std::string tolower(const std::string &);
11 std::string toupper(const std::string &);
12 std::vector<std::string> split(const std::string &, const std::string & =" \t\r\n", bool =false);
13 std::vector<std::string> split(const std::string &, char, bool =false);
14 template<typename T>
15 std::string join(const T &, const std::string & =" ");
16 std::string strip(const std::string &);
17
18 } // namespace Msp
19
20 #endif