MCPcopy Create free account
hub / github.com/Kitware/CMake / field

Method field

Utilities/cmcppdap/src/jsoncpp_json_serializer.cpp:132–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132bool JsonCppDeserializer::field(
133 const std::string& name,
134 const std::function<bool(dap::Deserializer*)>& cb) const {
135 if (!json->isObject()) {
136 return false;
137 }
138 auto value = json->find(name.data(), name.data() + name.size());
139 if (value == nullptr) {
140 return cb(&NullDeserializer::instance);
141 }
142 JsonCppDeserializer d(value);
143 return cb(&d);
144}
145
146Json::Value JsonCppDeserializer::parse(const std::string& text) {
147 Json::CharReaderBuilder builder;

Callers

nothing calls this directly

Calls 4

isObjectMethod · 0.80
findMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected