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

Method find

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:1082–1094  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
1081
1082Value const* Value::find(char const* begin, char const* end) const {
1083 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
1084 "in Json::Value::find(begin, end): requires "
1085 "objectValue or nullValue");
1086 if (type() == nullValue)
1087 return nullptr;
1088 CZString actualKey(begin, static_cast<unsigned>(end - begin),
1089 CZString::noDuplication);
1090 ObjectValues::const_iterator it = value_.map_->find(actualKey);
1091 if (it == value_.map_->end())
1092 return nullptr;
1093 return &(*it).second;
1094}
1095Value const* Value::find(const String& key) const {
1096 return find(key.data(), key.data() + key.length());
1097}

Callers 11

valueToStringFunction · 0.45
json_value.cppFile · 0.45
removeMemberMethod · 0.45
removeIndexMethod · 0.45
lzma_mf_findFunction · 0.45
fieldMethod · 0.45
fieldMethod · 0.45
requestMethod · 0.45
responseMethod · 0.45
eventMethod · 0.45
responseSentMethod · 0.45

Calls 5

lengthMethod · 0.80
typeClass · 0.50
findFunction · 0.50
endMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected