| 3389 | bool Value::operator!() const { return isNull(); } |
| 3390 | |
| 3391 | void Value::clear() { |
| 3392 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue || |
| 3393 | type_ == objectValue, |
| 3394 | "in Json::Value::clear(): requires complex value"); |
| 3395 | start_ = 0; |
| 3396 | limit_ = 0; |
| 3397 | switch (type_) { |
| 3398 | case arrayValue: |
| 3399 | case objectValue: |
| 3400 | value_.map_->clear(); |
| 3401 | break; |
| 3402 | default: |
| 3403 | break; |
| 3404 | } |
| 3405 | } |
| 3406 | |
| 3407 | void Value::resize(ArrayIndex newSize) { |
| 3408 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue, |
no outgoing calls
no test coverage detected