| 149 | } |
| 150 | |
| 151 | std::optional<uint32_t> parse_u32_option( |
| 152 | const std::unordered_map<std::string, std::string> & options, |
| 153 | std::initializer_list<std::string_view> keys) { |
| 154 | if (const auto match = find_option_match(options, keys)) { |
| 155 | return parse_u32_value(match->value, match->key); |
| 156 | } |
| 157 | return std::nullopt; |
| 158 | } |
| 159 | |
| 160 | std::optional<uint64_t> parse_u64_option( |
| 161 | const std::unordered_map<std::string, std::string> & options, |
no test coverage detected