MCPcopy Index your code
hub / github.com/Kitware/CMake / removeMember

Method removeMember

Utilities/cmjsoncpp/src/lib_json/json_value.cpp:1170–1183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 4

testObjectFunction · 0.80
testObjectInheritedFunction · 0.80
fieldMethod · 0.80
HandleJSONCommandFunction · 0.80

Calls 9

moveFunction · 0.85
eraseMethod · 0.80
lengthMethod · 0.80
c_strMethod · 0.80
typeClass · 0.50
strlenFunction · 0.50
findMethod · 0.45
endMethod · 0.45
dataMethod · 0.45

Tested by 2

testObjectFunction · 0.64
testObjectInheritedFunction · 0.64