| 273 | #ifndef ROCKSDB_LITE |
| 274 | |
| 275 | bool ParseBoolean(const std::string& type, const std::string& value) { |
| 276 | if (value == "true" || value == "1") { |
| 277 | return true; |
| 278 | } else if (value == "false" || value == "0") { |
| 279 | return false; |
| 280 | } |
| 281 | throw std::invalid_argument(type); |
| 282 | } |
| 283 | |
| 284 | uint32_t ParseUint32(const std::string& value) { |
| 285 | uint64_t num = ParseUint64(value); |
no outgoing calls
no test coverage detected