| 43 | } |
| 44 | |
| 45 | std::vector<std::string> split(const std::string& string, char separator) |
| 46 | { |
| 47 | std::vector<std::string> result; |
| 48 | std::stringstream ss(string); |
| 49 | std::string item; |
| 50 | |
| 51 | while (std::getline(ss, item, separator)) |
| 52 | { |
| 53 | result.push_back(item); |
| 54 | } |
| 55 | |
| 56 | return result; |
| 57 | } |
| 58 | |
| 59 | bool beginsWith(const std::string& value, const std::string& ending) |
| 60 | { |
no test coverage detected