MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / find

Method find

Sources/Dependencies/jsoncpp/value.cpp:1178–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1176 }
1177
1178 Value const* Value::find(char const* begin, char const* end) const {
1179 JSON_ASSERT_MESSAGE(type() == nullValue || type() == objectValue,
1180 "in Json::Value::find(begin, end): requires objectValue or nullValue");
1181 if (type() == nullValue)
1182 return nullptr;
1183 CZString actualKey(begin, static_cast<unsigned>(end - begin), CZString::noDuplication);
1184 ObjectValues::const_iterator it = value_.map_->find(actualKey);
1185 if (it == value_.map_->end())
1186 return nullptr;
1187 return &(*it).second;
1188 }
1189 Value const* Value::find(const StringContainer& key) const {
1190 return find(key.data(), key.data() + key.length());
1191 }

Callers 14

value.cppFile · 0.45
removeMemberMethod · 0.45
removeIndexMethod · 0.45
valueToStringFunction · 0.45
isUsingInMemoryCAsMethod · 0.45
clientHandshakeMethod · 0.45
serverHandshakeMethod · 0.45
ParseURLMethod · 0.45
response_head_fileFunction · 0.45
parseRequestMethod · 0.45

Calls 4

typeClass · 0.85
endMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected