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

Function parse_bool_scalar

src/framework/io/yaml.cpp:252–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252bool parse_bool_scalar(const std::string & value, const std::string & key) {
253 if (value == "true") {
254 return true;
255 }
256 if (value == "false") {
257 return false;
258 }
259 throw std::runtime_error("yaml boolean key has invalid value: " + key);
260}
261
262std::string require_string(const FlattenedDocument & document, const std::string & key) {
263 const auto it = document.scalars.find(key);

Callers 3

optional_bool_scalarFunction · 0.85
require_boolFunction · 0.85
descriptor_from_yamlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected