MCPcopy Create free account
hub / github.com/PlayFab/gsdk / find

Method find

cpp/cppsdk/jsoncpp.cpp:3590–3602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3588bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3589
3590Value const* Value::find(char const* begin, char const* end) const {
3591 JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == objectValue,
3592 "in Json::Value::find(key, end, found): requires "
3593 "objectValue or nullValue");
3594 if (type_ == nullValue)
3595 return NULL;
3596 CZString actualKey(begin, static_cast<unsigned>(end - begin),
3597 CZString::noDuplication);
3598 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3599 if (it == value_.map_->end())
3600 return NULL;
3601 return &(*it).second;
3602}
3603const Value& Value::operator[](const char* key) const {
3604 Value const* found = find(key, key + strlen(key));
3605 if (!found)

Callers 11

getLogsDirectoryMethod · 0.80
validateMethod · 0.80
jsoncpp.cppFile · 0.80
removeMemberMethod · 0.80
removeIndexMethod · 0.80
valueToStringFunction · 0.80
processRequestsFunction · 0.80
getTestCertFunction · 0.80
processRequestsFunction · 0.80
getTestCertFunction · 0.80

Calls 1

endMethod · 0.80

Tested by

no test coverage detected