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