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

Method extractKey

Windows/Gopher/Gopher/ConfigFile.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void ConfigFile::extractKey(std::string &key, size_t const &sepPos, const std::string &line) const
31{
32 key = line.substr(0, sepPos);
33 if (key.find('\t') != line.npos || key.find(' ') != line.npos)
34 key.erase(key.find_first_of("\t "));
35}
36void ConfigFile::extractValue(std::string &value, size_t const &sepPos, const std::string &line) const
37{
38 value = line.substr(sepPos + 1);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected