| 120 | } |
| 121 | |
| 122 | bool StringToBool(const std::string& str) { |
| 123 | return CaseInsensitiveStringEquals(str, "1") || CaseInsensitiveStringEquals(str, "true") |
| 124 | || CaseInsensitiveStringEquals(str, "yes") || CaseInsensitiveStringEquals(str, "on") |
| 125 | || CaseInsensitiveStringEquals(str, "y"); |
| 126 | } |
| 127 | |
| 128 | bool StringToInteger(const std::string& str, int64_t* value) { |
| 129 | char* end; |
no test coverage detected