MCPcopy Create free account
hub / github.com/Samsung/UTopia / find

Method find

external/jsoncpp/jsoncpp.cpp:3487–3499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3485bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3486
3487Value const *Value::find(char const *begin, char const *end) const {
3488 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
3489 "in Json::Value::find(begin, end): requires "
3490 "objectValue or nullValue");
3491 if (type() == nullValue)
3492 return nullptr;
3493 CZString actualKey(begin, static_cast<unsigned>(end - begin),
3494 CZString::noDuplication);
3495 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3496 if (it == value_.map_->end())
3497 return nullptr;
3498 return &(*it).second;
3499}
3500Value *Value::demand(char const *begin, char const *end) {
3501 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
3502 "in Json::Value::demand(begin, end): requires "

Callers 15

replaceStrOnceFunction · 0.45
replaceStrAllFunction · 0.45
splitFunction · 0.45
hasMethod · 0.45
getMethod · 0.45
validateMethod · 0.45
jsoncpp.cppFile · 0.45
removeMemberMethod · 0.45
removeIndexMethod · 0.45
valueToStringFunction · 0.45

Calls 1

endMethod · 0.80

Tested by 4

isForbiddenMethod · 0.36
replaceAllMethod · 0.36
containsMethod · 0.36