| 3565 | |
| 3566 | |
| 3567 | bool 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 | } |
| 3580 | bool Value::removeMember(const char* key, Value* removed) |
| 3581 | { |
| 3582 | return removeMember(key, key + strlen(key), removed); |