MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / find

Method find

src/share/jsoncpp/jsoncpp.cpp:3524–3534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3522bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3523
3524Value const* Value::find(char const* key, char const* cend) const
3525{
3526 JSON_ASSERT_MESSAGE(
3527 type_ == nullValue || type_ == objectValue,
3528 "in Json::Value::find(key, end, found): requires objectValue or nullValue");
3529 if (type_ == nullValue) return NULL;
3530 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
3531 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3532 if (it == value_.map_->end()) return NULL;
3533 return &(*it).second;
3534}
3535const Value& Value::operator[](const char* key) const
3536{
3537 Value const* found = find(key, key + strlen(key));

Callers 15

GetPinYinMethod · 0.45
setFoldersMethod · 0.45
initDocumentExFieldsMethod · 0.45
TagArrayToSQLFunction · 0.45
getRootLocationNameMethod · 0.45
isRootLocationMethod · 0.45
RemoveMultiElementsFunction · 0.45
isOpenedMethod · 0.45
openWithInfoMethod · 0.45
closeMethod · 0.45
updateLocalTemplatesMethod · 0.45

Calls 1

endMethod · 0.80

Tested by

no test coverage detected