| 22 | namespace { |
| 23 | |
| 24 | std::vector<std::string> SplitValues(const std::string& values) { |
| 25 | std::vector<std::string> split; |
| 26 | size_t start = 0; |
| 27 | while (start <= values.size()) { |
| 28 | const size_t end = values.find(' ', start); |
| 29 | split.push_back(values.substr(start, end - start)); |
| 30 | if (end == std::string::npos) { |
| 31 | break; |
| 32 | } |
| 33 | start = end + 1; |
| 34 | } |
| 35 | return split; |
| 36 | } |
| 37 | |
| 38 | bool IsDictionaryEntry(const std::string& line) { |
| 39 | return !line.empty() && line[0] != '#'; |
no test coverage detected