MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / find

Method find

src/jsoncpp.cpp:3493–3503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3491bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3492
3493Value const* Value::find(char const* key, char const* cend) const
3494{
3495 JSON_ASSERT_MESSAGE(
3496 type_ == nullValue || type_ == objectValue,
3497 "in Json::Value::find(key, end, found): requires objectValue or nullValue");
3498 if (type_ == nullValue) return NULL;
3499 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
3500 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3501 if (it == value_.map_->end()) return NULL;
3502 return &(*it).second;
3503}
3504const Value& Value::operator[](const char* key) const
3505{
3506 Value const* found = find(key, key + strlen(key));

Callers 12

CacheMapThreadFunction · 0.80
validateMethod · 0.80
jsoncpp.cppFile · 0.80
removeMemberMethod · 0.80
removeIndexMethod · 0.80
StringReplaceFunction · 0.80
striparraysuffixFunction · 0.80
converttypeFunction · 0.80
getnamespaceFunction · 0.80
outputstructfieldsFunction · 0.80
outputstructsFunction · 0.80
OutputStructFieldsFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected