MCPcopy Create free account
hub / github.com/Illumina/paragraph / find

Method find

external/jsoncpp/jsoncpp.cpp:3569–3579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3567bool Value::isValidIndex(ArrayIndex index) const { return index < size(); }
3568
3569Value const* Value::find(char const* key, char const* cend) const
3570{
3571 JSON_ASSERT_MESSAGE(
3572 type_ == nullValue || type_ == objectValue,
3573 "in Json::Value::find(key, end, found): requires objectValue or nullValue");
3574 if (type_ == nullValue) return NULL;
3575 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
3576 ObjectValues::const_iterator it = value_.map_->find(actualKey);
3577 if (it == value_.map_->end()) return NULL;
3578 return &(*it).second;
3579}
3580const Value& Value::operator[](const char* key) const
3581{
3582 Value const* found = find(key, key + strlen(key));

Callers 15

valgrind-check.pyFile · 0.80
alignReadMethod · 0.80
getSimulatedPathIdMethod · 0.80
genotypeVectorFromStringFunction · 0.80
reportConsensusGenotypesFunction · 0.80
genotypeLikelihoodMethod · 0.80
getGenotypesMethod · 0.80
getGenotypeMethod · 0.80
getCountMethod · 0.80
addCountsMethod · 0.80
getCountMethod · 0.80
PopulationStatisticsMethod · 0.80

Calls 1

endMethod · 0.45

Tested by 1

TEST_FFunction · 0.64