MCPcopy Create free account
hub / github.com/MariaDB/server / get_str

Method get_str

plugin/handler_socket/libhsclient/config.cpp:19–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17unsigned int verbose_level = 0;
18
19std::string
20config::get_str(const std::string& key, const std::string& def) const
21{
22 const_iterator iter = this->find(key);
23 if (iter == this->end()) {
24 DENA_VERBOSE(10, fprintf(stderr, "CONFIG: %s=%s(default)\n", key.c_str(),
25 def.c_str()));
26 return def;
27 }
28 DENA_VERBOSE(10, fprintf(stderr, "CONFIG: %s=%s\n", key.c_str(),
29 iter->second.c_str()));
30 return iter->second;
31}
32
33long long
34config::get_int(const std::string& key, long long def) const

Callers 10

hstcpcli_mainFunction · 0.45
runMethod · 0.45
hs_longrun_init_tableFunction · 0.45
hs_longrun_mainFunction · 0.45
test_9Method · 0.45
test_10Method · 0.45
test_12Method · 0.45
hstest_mainFunction · 0.45
hstcpsvrMethod · 0.45
setMethod · 0.45

Calls 3

findMethod · 0.45
endMethod · 0.45
c_strMethod · 0.45

Tested by 4

test_9Method · 0.36
test_10Method · 0.36
test_12Method · 0.36
hstest_mainFunction · 0.36