MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / SettingToBool

Function SettingToBool

src/common/args.cpp:584–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

582}
583
584std::optional<bool> SettingToBool(const common::SettingsValue& value)
585{
586 if (value.isNull()) return std::nullopt;
587 if (value.isBool()) return value.get_bool();
588 return InterpretBool(value.get_str());
589}
590
591bool SettingToBool(const common::SettingsValue& value, bool fDefault)
592{

Callers 2

getOptionMethod · 0.85
GetBoolArgMethod · 0.85

Calls 5

InterpretBoolFunction · 0.85
isNullMethod · 0.80
isBoolMethod · 0.80
get_boolMethod · 0.80
value_orMethod · 0.45

Tested by

no test coverage detected