| 588 | bool Value::operator!=(const Value& other) const { return !(*this == other); } |
| 589 | |
| 590 | const char* Value::asCString() const { |
| 591 | JSON_ASSERT_MESSAGE(type() == stringValue, |
| 592 | "in Json::Value::asCString(): requires stringValue"); |
| 593 | if (value_.string_ == nullptr) |
| 594 | return nullptr; |
| 595 | unsigned this_len; |
| 596 | char const* this_str; |
| 597 | decodePrefixedString(this->isAllocated(), this->value_.string_, &this_len, |
| 598 | &this_str); |
| 599 | return this_str; |
| 600 | } |
| 601 | |
| 602 | #if JSONCPP_USING_SECURE_MEMORY |
| 603 | unsigned Value::getCStringLength() const { |
no test coverage detected