MCPcopy Create free account
hub / github.com/Persper/code-analytics / GetInt

Method GetInt

test/cpp_test_repo/D/TextFileParsers.cpp:108–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int ConfigurationParser::GetInt(const std::string& key, int defaultValue) const
109{
110 auto v = entries.find(key);
111 if (v == entries.end()) return defaultValue;
112 try
113 {
114 return stoi(v->second);
115 } catch (const exception&)
116 {
117 throw_with_nested(Exception("�޷������á�" + key + "��ֵת��Ϊint��"));
118 }
119}
120
121double ConfigurationParser::GetDouble(const std::string& key, double defaultValue) const
122{

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.70
endMethod · 0.45

Tested by

no test coverage detected