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

Method extractValue

Windows/Gopher/Gopher/ConfigFile.cpp:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
39 value.erase(0, value.find_first_not_of("\t "));
40 value.erase(value.find_last_not_of("\t ") + 1);
41}
42
43void ConfigFile::extractContents(const std::string &line)
44{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected