| 9 | using namespace Valdi; |
| 10 | |
| 11 | std::vector<std::string> split(const std::string& s, char delimiter) { |
| 12 | std::vector<std::string> tokens; |
| 13 | std::string token; |
| 14 | for (char ch : s) { |
| 15 | if (ch == delimiter) { |
| 16 | if (!token.empty()) { |
| 17 | tokens.push_back(token); |
| 18 | token.clear(); |
| 19 | } |
| 20 | } else { |
| 21 | token += ch; |
| 22 | } |
| 23 | } |
| 24 | // Add the last token |
| 25 | if (!token.empty()) { |
| 26 | tokens.push_back(token); |
| 27 | } |
| 28 | return tokens; |
| 29 | } |
| 30 | |
| 31 | int main(int argc, const char** argv) { |
| 32 | if (argc <= 1) { |
no test coverage detected