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

Method parseLine

Windows/Gopher/Gopher/ConfigFile.cpp:59–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void ConfigFile::parseLine(const std::string &line, size_t const lineNo)
60{
61 if (line.find('=') == line.npos)
62 exitWithError("CFG: Couldn't find separator on line: " + Convert::T_to_string(lineNo) + "\n");
63
64 if (!validLine(line))
65 exitWithError("CFG: Bad format for line: " + Convert::T_to_string(lineNo) + "\n");
66
67 extractContents(line);
68}
69
70void ConfigFile::ExtractKeys()
71{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected