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

Method removeMember

runtime/3rdparty/jsoncpp/jsoncpp.cpp:3872–3886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3870}
3871
3872bool Value::removeMember(const char *begin, const char *end, Value *removed)
3873{
3874 if (type() != objectValue)
3875 {
3876 return false;
3877 }
3878 CZString actualKey(begin, static_cast<unsigned>(end - begin), CZString::noDuplication);
3879 auto it = value_.map_->find(actualKey);
3880 if (it == value_.map_->end())
3881 return false;
3882 if (removed)
3883 *removed = std::move(it->second);
3884 value_.map_->erase(it);
3885 return true;
3886}
3887bool Value::removeMember(const char *key, Value *removed)
3888{
3889 return removeMember(key, key + strlen(key), removed);

Callers

nothing calls this directly

Calls 7

typeFunction · 0.50
findMethod · 0.45
endMethod · 0.45
eraseMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected