| 965 | Value::operator bool() const { return ! isNull(); } |
| 966 | |
| 967 | void Value::clear() { |
| 968 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue || |
| 969 | type_ == objectValue, |
| 970 | "in Json::Value::clear(): requires complex value"); |
| 971 | start_ = 0; |
| 972 | limit_ = 0; |
| 973 | switch (type_) { |
| 974 | case arrayValue: |
| 975 | case objectValue: |
| 976 | value_.map_->clear(); |
| 977 | break; |
| 978 | default: |
| 979 | break; |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | void Value::resize(ArrayIndex newSize) { |
| 984 | JSON_ASSERT_MESSAGE(type_ == nullValue || type_ == arrayValue, |
no outgoing calls
no test coverage detected