MCPcopy Create free account
hub / github.com/Tylemagne/Gopher360 / validLine

Method validLine

Windows/Gopher/Gopher/ConfigFile.cpp:16–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 return (line.find_first_not_of(' ') == line.npos);
15}
16bool 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
30void ConfigFile::extractKey(std::string &key, size_t const &sepPos, const std::string &line) const
31{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected