MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / find

Method find

AgentBench.old/src/tasks/card_game/logic/src/jsoncpp/jsoncpp.cpp:3580–3590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3578bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3579
3580Value const* Value::find(char const* key, char const* cend) const
3581{
3582 JSON_ASSERT_MESSAGE(
3583 type_ == nullValue || type_ == objectValue,
3584 "in Json::Value::find(key, end, found): requires objectValue or nullValue");
3585 if (type_ == nullValue) return NULL;
3586 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
3587 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3588 if (it == value_.map_->end()) return NULL;
3589 return &(*it).second;
3590}
3591const Value& Value::operator[](const char* key) const
3592{
3593 Value const* found = find(key, key + strlen(key));

Callers 15

LlFunction · 0.45
spider.pyFile · 0.45
extract_actionMethod · 0.45
validateMethod · 0.45
jsoncpp.cppFile · 0.45
removeMemberMethod · 0.45
removeIndexMethod · 0.45
process_obFunction · 0.45
parse_item_page_ebayFunction · 0.45
parse_results_wsFunction · 0.45
parse_item_page_wsFunction · 0.45
parse_results_amzFunction · 0.45

Calls 1

endMethod · 0.45

Tested by

no test coverage detected