| 986 | } |
| 987 | |
| 988 | void Value::clear() { |
| 989 | JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue || type() == objectValue, |
| 990 | "in Json::Value::clear(): requires complex value"); |
| 991 | start_ = 0; |
| 992 | limit_ = 0; |
| 993 | switch (type()) { |
| 994 | case arrayValue: |
| 995 | case objectValue: |
| 996 | value_.map_->clear(); |
| 997 | break; |
| 998 | default: |
| 999 | break; |
| 1000 | } |
| 1001 | } |
| 1002 | |
| 1003 | void Value::resize(ArrayIndex newSize) { |
| 1004 | JSON_ASSERT_MESSAGE(type() == nullValue || type() == arrayValue, "in Json::Value::resize(): requires arrayValue"); |
no test coverage detected