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

Function SettingToString

src/common/args.cpp:530–537  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530std::optional<std::string> SettingToString(const common::SettingsValue& value)
531{
532 if (value.isNull()) return std::nullopt;
533 if (value.isFalse()) return "0";
534 if (value.isTrue()) return "1";
535 if (value.isNum()) return value.getValStr();
536 return value.get_str();
537}
538
539std::string SettingToString(const common::SettingsValue& value, const std::string& strDefault)
540{

Callers 4

InitMethod · 0.85
getOptionMethod · 0.85
GetPathArg_Method · 0.85
GetArgMethod · 0.85

Calls 5

isNullMethod · 0.80
isFalseMethod · 0.80
isTrueMethod · 0.80
isNumMethod · 0.80
value_orMethod · 0.45

Tested by

no test coverage detected