Interpret string as boolean, for argument parsing */
| 318 | |
| 319 | /** Interpret string as boolean, for argument parsing */ |
| 320 | static 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 */ |
| 328 | static void InterpretNegativeSetting(std::string& strKey, std::string& strValue) |
no test coverage detected