| 3376 | Value::operator bool() const { return ! isNull(); } |
| 3377 | |
| 3378 | void Value::clear() { |
| 3379 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue || |
| 3380 | type_ == objectValue, |
| 3381 | "in Json::Value::clear(): requires complex value"); |
| 3382 | start_ = 0; |
| 3383 | limit_ = 0; |
| 3384 | switch (type_) { |
| 3385 | case arrayValue: |
| 3386 | case objectValue: |
| 3387 | value_.map_->clear(); |
| 3388 | break; |
| 3389 | default: |
| 3390 | break; |
| 3391 | } |
| 3392 | } |
| 3393 | |
| 3394 | void Value::resize(ArrayIndex newSize) { |
| 3395 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue, |
no outgoing calls
no test coverage detected