MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / get_object_string_key

Function get_object_string_key

src/api_builder/utilities.cpp:50–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50std::string get_object_string_key(json_value *root, const std::string& key)
51{
52 json_value *val = get_object_key(root, key);
53
54 if (!val) return "";
55
56 if (val->type == json_string) {
57 return val->u.string.ptr;
58 }
59 return "";
60}
61
62std::string get_object_string(json_value *val)
63{

Callers 5

buildLoaderFunction · 0.85
parseTypedefsFunction · 0.85
write_functionsFunction · 0.85
write_enumsFunction · 0.85
buildExportFunction · 0.85

Calls 1

get_object_keyFunction · 0.85

Tested by

no test coverage detected