MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / parse_int_option

Function parse_int_option

src/framework/runtime/options.cpp:120–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120std::optional<int> parse_int_option(
121 const std::unordered_map<std::string, std::string> & options,
122 std::initializer_list<std::string_view> keys) {
123 if (const auto match = find_option_match(options, keys)) {
124 return parse_int_value(match->value, match->key);
125 }
126 return std::nullopt;
127}
128
129std::optional<float> parse_float_option(
130 const std::unordered_map<std::string, std::string> & options,

Callers 15

parse_v2_configFunction · 0.85
parse_v1_configFunction · 0.85
StableAudioSessionMethod · 0.85
FoundationSessionMethod · 0.85
make_requestMethod · 0.85

Calls 2

find_option_matchFunction · 0.85
parse_int_valueFunction · 0.85

Tested by

no test coverage detected