| 3434 | Value::operator bool() const { return ! isNull(); } |
| 3435 | |
| 3436 | void Value::clear() { |
| 3437 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue || |
| 3438 | type_ == objectValue, |
| 3439 | "in Json::Value::clear(): requires complex value"); |
| 3440 | start_ = 0; |
| 3441 | limit_ = 0; |
| 3442 | switch (type_) { |
| 3443 | case arrayValue: |
| 3444 | case objectValue: |
| 3445 | value_.map_->clear(); |
| 3446 | break; |
| 3447 | default: |
| 3448 | break; |
| 3449 | } |
| 3450 | } |
| 3451 | |
| 3452 | void Value::resize(ArrayIndex newSize) { |
| 3453 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue, |
no outgoing calls
no test coverage detected