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

Method find

vrclient_x64/jsoncpp.cpp:3492–3502  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 7

vrclient_get_unix_bufferFunction · 0.80
validateMethod · 0.80
jsoncpp.cppFile · 0.80
removeMemberMethod · 0.80
removeIndexMethod · 0.80
glyph_cache_lookupFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected