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

Function get_object_key

src/api_builder/utilities.cpp:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37json_value* get_object_key(json_value *root, const std::string& key)
38{
39 assert(root->type == json_object);
40
41 for (auto& it : jsonObjectIterator(root))
42 {
43 if (key == it.name) {
44 return it.value;
45 }
46 }
47 return nullptr;
48}
49
50std::string get_object_string_key(json_value *root, const std::string& key)
51{

Callers 7

get_object_string_keyFunction · 0.85
buildLoaderFunction · 0.85
parseTypedefsFunction · 0.85
write_functionsFunction · 0.85
write_enumsFunction · 0.85
buildCSharpFunction · 0.85
buildExportFunction · 0.85

Calls 1

jsonObjectIteratorClass · 0.85

Tested by

no test coverage detected