Helper: Trim whitespace from string
| 86 | |
| 87 | // Helper: Trim whitespace from string |
| 88 | string trim(const string& s) { |
| 89 | size_t start = 0; |
| 90 | while (start < s.size() && fl::isspace(s[start])) ++start; |
| 91 | size_t end = s.size(); |
| 92 | while (end > start && fl::isspace(s[end - 1])) --end; |
| 93 | return s.substr(start, end - start); |
| 94 | } |
| 95 | |
| 96 | // Helper: Split string by delimiter |
| 97 | vector<string> split(const string& s, char delimiter) { |
no test coverage detected