MCPcopy Create free account
hub / github.com/SOUI2/soui / removeMember

Method removeMember

third-part/jsoncpp/src/lib_json/json_value.cpp:1169–1181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1167
1168
1169bool Value::removeMember(const char* key, const char* cend, Value* removed)
1170{
1171 if (type_ != objectValue) {
1172 return false;
1173 }
1174 CZString actualKey(key, static_cast<unsigned>(cend-key), CZString::noDuplication);
1175 ObjectValues::iterator it = value_.map_->find(actualKey);
1176 if (it == value_.map_->end())
1177 return false;
1178 *removed = it->second;
1179 value_.map_->erase(it);
1180 return true;
1181}
1182bool Value::removeMember(const char* key, Value* removed)
1183{
1184 return removeMember(key, key + strlen(key), removed);

Callers 1

JSONTEST_FIXTUREFunction · 0.80

Calls 5

findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected