MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / InterpretBool

Function InterpretBool

src/util.cpp:320–325  ·  view source on GitHub ↗

Interpret string as boolean, for argument parsing */

Source from the content-addressed store, hash-verified

318
319/** Interpret string as boolean, for argument parsing */
320static bool InterpretBool(const std::string& strValue)
321{
322 if (strValue.empty())
323 return true;
324 return (atoi(strValue) != 0);
325}
326
327/** Turn -noX into -X=0 */
328static void InterpretNegativeSetting(std::string& strKey, std::string& strValue)

Callers 2

InterpretNegativeSettingFunction · 0.85
GetBoolArgFunction · 0.85

Calls 2

atoiFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected