| 2986 | bool Value::operator!=(const Value &other) const { return !(*this == other); } |
| 2987 | |
| 2988 | const char *Value::asCString() const { |
| 2989 | JSON_ASSERT_MESSAGE(type() == stringValue, |
| 2990 | "in Json::Value::asCString(): requires stringValue"); |
| 2991 | if (value_.string_ == nullptr) |
| 2992 | return nullptr; |
| 2993 | unsigned this_len; |
| 2994 | char const *this_str; |
| 2995 | decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len, |
| 2996 | &this_str); |
| 2997 | return this_str; |
| 2998 | } |
| 2999 | |
| 3000 | #if JSONCPP_USING_SECURE_MEMORY |
| 3001 | unsigned Value::getCStringLength() const { |
no test coverage detected