| 14 | return (line.find_first_not_of(' ') == line.npos); |
| 15 | } |
| 16 | bool ConfigFile::validLine(const std::string &line) const |
| 17 | { |
| 18 | std::string temp = line; |
| 19 | temp.erase(0, temp.find_first_not_of("\t ")); |
| 20 | if (temp[0] == '=') |
| 21 | return false; |
| 22 | |
| 23 | for (size_t i = temp.find('=') + 1; i < temp.length(); i++) |
| 24 | if (temp[i] != ' ') |
| 25 | return true; |
| 26 | |
| 27 | return false; |
| 28 | } |
| 29 | |
| 30 | void ConfigFile::extractKey(std::string &key, size_t const &sepPos, const std::string &line) const |
| 31 | { |
nothing calls this directly
no outgoing calls
no test coverage detected