MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / parseBoolean

Function parseBoolean

src/jrd/replication/Config.cpp:75–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 void parseBoolean(const string& input, bool& output)
76 {
77 if (input == "true" || input == "yes" || input == "on" || input == "1")
78 output = true;
79 else if (input == "false" || input == "no" || input == "off" || input == "0")
80 output = false;
81 }
82
83 void configError(CheckStatusWrapper* status, const string& type, const string& key, const string& value)
84 {

Callers 3

parseMethod · 0.85
getMethod · 0.85
enumerateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected