MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / find

Method find

Source/JSON/jsoncpp.cpp:3156–3165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3154bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3155
3156Value const* Value::find(char const* key, char const* cend) const {
3157 JSON_ASSERT_MESSAGE(
3158 type_ == nullValue || type_ == objectValue,
3159 "in Json::Value::find(key, end, found): requires objectValue or nullValue");
3160 if (type_ == nullValue) return NULL;
3161 CZString actualKey(key, static_cast<unsigned>(cend - key), CZString::noDuplication);
3162 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3163 if (it == value_.map_->end()) return NULL;
3164 return &(*it).second;
3165}
3166const Value& Value::operator[](const char* key) const {
3167 Value const* found = find(key, key + strlen(key));
3168 if (!found) return nullRef;

Callers 15

ReleaseMethod · 0.45
AcquireMethod · 0.45
SerializeMethod · 0.45
DeserializeMethod · 0.45
ExecuteMethod · 0.45
GetMessageTypeMethod · 0.45
GetMessageDataMethod · 0.45
HasConnectionMethod · 0.45
GetObjectIDMethod · 0.45
GetOriginalIDMethod · 0.45
SyncHostSessionFlagsMethod · 0.45
RegisterMPStateMethod · 0.45

Calls 1

endMethod · 0.45

Tested by 1

GetGLVendorFunction · 0.36