MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetIntArg

Method GetIntArg

src/util/system.cpp:591–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591int64_t ArgsManager::GetIntArg(const std::string& strArg, int64_t nDefault) const
592{
593 const util::SettingsValue value = GetSetting(strArg);
594 return value.isNull() ? nDefault : value.isFalse() ? 0 : value.isTrue() ? 1 : value.isNum() ? value.get_int64() : LocaleIndependentAtoi<int64_t>(value.get_str());
595}
596
597bool ArgsManager::GetBoolArg(const std::string& strArg, bool fDefault) const
598{

Callers 15

HTTPBindAddressesFunction · 0.80
InitHTTPServerFunction · 0.80
StartHTTPServerFunction · 0.80
LoadAddrmanFunction · 0.80
AddTimeDataFunction · 0.80
CallRPCFunction · 0.80
ConnectAndCallRPCFunction · 0.80
ProcessMessageMethod · 0.80
MaybeSendFeefilterMethod · 0.80
BatchWriteMethod · 0.80
CallMainChainRPCFunction · 0.80

Calls 6

GetSettingFunction · 0.85
isFalseMethod · 0.80
isTrueMethod · 0.80
isNumMethod · 0.80
get_int64Method · 0.80
isNullMethod · 0.45

Tested by 9

CheckValueMethod · 0.64
TestParseFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
GetCheckRatioFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
GetCheckRatioFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64
TestingSetupMethod · 0.64