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