MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / removeMember

Method removeMember

src/jsoncpp.cpp:3567–3579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3565
3566
3567bool Value::removeMember(const char* key, const char* cend, Value* removed)
3568{
3569 if (type_ != objectValue) {
3570 return false;
3571 }
3572 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
3573 ObjectValues::iterator it = value_.map_->find(actualKey);
3574 if (it == value_.map_->end())
3575 return false;
3576 *removed = it->second;
3577 value_.map_->erase(it);
3578 return true;
3579}
3580bool Value::removeMember(const char* key, Value* removed)
3581{
3582 return removeMember(key, key + strlen(key), removed);

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected