MCPcopy Create free account
hub / github.com/Tencent/phxsql / Get

Method Get

phxcomm/configparser/inih-master/cpp/INIReader.cpp:35–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35string INIReader::Get(const string &section, const string &name, const string &default_value) {
36 std::map<std::string, std::map<std::string, std::string> >::iterator f_section = _values.find(section);
37 if (f_section != _values.end()) {
38 std::map<std::string, std::string>::iterator f_name = f_section->second.find(name);
39 if (f_name != f_section->second.end()) {
40 return f_name->second;
41 }
42 }
43
44 return default_value;
45}
46
47long INIReader::GetInteger(const string &section, const string &name, const long &default_value) {
48 string valstr = Get(section, name, "");

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36