| 115 | } |
| 116 | |
| 117 | std::list<std::string> strsplit(const std::string& s, char delim) { |
| 118 | std::list<std::string> elems; |
| 119 | return strsplit(s, delim, elems); |
| 120 | } |
| 121 | |
| 122 | // Strips leading and trailing spaces from a string |
| 123 | std::string trim(const std::string& s, const std::string& c) { |