| 7 | namespace stringutils |
| 8 | { |
| 9 | std::vector<std::string> split(const std::string& s, char delim) |
| 10 | { |
| 11 | std::vector<std::string> elems; |
| 12 | std::stringstream ss(s); |
| 13 | std::string item; |
| 14 | while (std::getline(ss, item, delim)) |
| 15 | { |
| 16 | elems.push_back(item); |
| 17 | } |
| 18 | return elems; |
| 19 | } |
| 20 | |
| 21 | std::string trim(const std::string& s, char c) |
| 22 | { |
no outgoing calls
no test coverage detected