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

Method GetDouble

test/cpp_test_repo/D/TextFileParsers.cpp:121–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121double ConfigurationParser::GetDouble(const std::string& key, double defaultValue) const
122{
123 auto v = entries.find(key);
124 if (v == entries.end()) return defaultValue;
125 try
126 {
127 return stod(v->second);
128 } catch (const exception&)
129 {
130 throw_with_nested(Exception("�޷������á�" + key + "��ֵת��Ϊdouble��"));
131 }
132}
133
134bool ConfigurationParser::GetBool(const std::string& key, bool defaultValue) const
135{

Callers

nothing calls this directly

Calls 2

ExceptionClass · 0.70
endMethod · 0.45

Tested by

no test coverage detected