MCPcopy Create free account
hub / github.com/Samsung/UTopia / removeMember

Method removeMember

external/jsoncpp/jsoncpp.cpp:3561–3574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3559}
3560
3561bool Value::removeMember(const char *begin, const char *end, Value *removed) {
3562 if (type() != objectValue) {
3563 return false;
3564 }
3565 CZString actualKey(begin, static_cast<unsigned>(end - begin),
3566 CZString::noDuplication);
3567 auto it = value_.map_->find(actualKey);
3568 if (it == value_.map_->end())
3569 return false;
3570 if (removed)
3571 *removed = std::move(it->second);
3572 value_.map_->erase(it);
3573 return true;
3574}
3575bool Value::removeMember(const char *key, Value *removed) {
3576 return removeMember(key, key + strlen(key), removed);
3577}

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected