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

Method removeMember

external/jsoncpp/jsoncpp.cpp:3638–3650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3636
3637
3638bool Value::removeMember(const char* key, const char* cend, Value* removed)
3639{
3640 if (type_ != objectValue) {
3641 return false;
3642 }
3643 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
3644 ObjectValues::iterator it = value_.map_->find(actualKey);
3645 if (it == value_.map_->end())
3646 return false;
3647 *removed = it->second;
3648 value_.map_->erase(it);
3649 return true;
3650}
3651bool Value::removeMember(const char* key, Value* removed)
3652{
3653 return removeMember(key, key + strlen(key), removed);

Callers 2

loadMethod · 0.80
alignSingleSampleFunction · 0.80

Calls 4

findMethod · 0.80
dataMethod · 0.80
endMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected