MCPcopy Create free account
hub / github.com/brichard19/BitCrack / read

Method read

KeyFinder/ConfigFile.cpp:32–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32std::map<std::string, ConfigFileEntry> ConfigFileReader::read()
33{
34 std::vector<std::string> lines;
35 std::map<std::string, ConfigFileEntry> entries;
36
37 util::readLinesFromStream(_path, lines);
38
39 for(int i = 0; i < lines.size(); i++) {
40 ConfigFileEntry e = readEntry(lines[i]);
41 std::string k = util::toLower(e.key);
42 entries[k] = e;
43 }
44
45 return entries;
46}

Callers 2

getResultsInternalMethod · 0.80
readCheckpointFileFunction · 0.80

Calls 2

readLinesFromStreamFunction · 0.85
toLowerFunction · 0.85

Tested by

no test coverage detected