| 3081 | bool Value::operator!=(const Value& other) const { return !(*this == other); } |
| 3082 | |
| 3083 | const char* Value::asCString() const { |
| 3084 | JSON_ASSERT_MESSAGE(type_ == stringValue, |
| 3085 | "in Json::Value::asCString(): requires stringValue"); |
| 3086 | if (value_.string_ == 0) |
| 3087 | return 0; |
| 3088 | unsigned this_len; |
| 3089 | char const* this_str; |
| 3090 | decodePrefixedString(this->allocated_, this->value_.string_, &this_len, |
| 3091 | &this_str); |
| 3092 | return this_str; |
| 3093 | } |
| 3094 | |
| 3095 | #if JSONCPP_USING_SECURE_MEMORY |
| 3096 | unsigned Value::getCStringLength() const { |