| 119 | } |
| 120 | |
| 121 | bool StringToBoolean(const std::string& value, const bool defaultValue) { |
| 122 | if (value.empty()) { |
| 123 | return defaultValue; |
| 124 | } |
| 125 | auto lowerValue = ToLowerCase(value); |
| 126 | return lowerValue == "true"; |
| 127 | } |
| 128 | |
| 129 | float StringToFloat(const std::string& value, const float defaultValue) { |
| 130 | if (value.empty()) { |
nothing calls this directly
no test coverage detected