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

Function option_text

tests/ace_step/ace_step_warm_bench.cpp:84–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84std::string option_text(const engine::io::json::Value & value) {
85 if (value.is_bool()) {
86 return value.as_bool() ? "true" : "false";
87 }
88 if (value.is_number()) {
89 return engine::io::json::stringify_number(value.as_number());
90 }
91 if (value.is_array()) {
92 return engine::io::json::stringify(value);
93 }
94 return value.as_string();
95}
96
97void set_required_option_from_request(
98 engine::runtime::TaskRequest & request,

Calls 7

stringify_numberFunction · 0.85
stringifyFunction · 0.85
is_boolMethod · 0.80
as_boolMethod · 0.80
is_numberMethod · 0.80
as_numberMethod · 0.80
is_arrayMethod · 0.80

Tested by

no test coverage detected