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

Function find_option

src/framework/runtime/options.cpp:103–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103std::optional<std::string> find_option(
104 const std::unordered_map<std::string, std::string> & options,
105 std::initializer_list<std::string_view> keys) {
106 const auto match = find_option_match(options, keys);
107 return match.has_value() ? std::optional<std::string>(match->value) : std::nullopt;
108}
109
110bool parse_bool_option(const std::string & value, std::string_view key) {
111 if (value == "true" || value == "1" || value == "yes" || value == "on") {

Callers 15

parse_audio_chunk_modeFunction · 0.85
mem_saver_from_optionsFunction · 0.85
runMethod · 0.85
run_streamingMethod · 0.85
parse_v2_configFunction · 0.85
parse_v1_configFunction · 0.85
option_string_listFunction · 0.85
option_f32_listFunction · 0.85

Calls 1

find_option_matchFunction · 0.85

Tested by

no test coverage detected