| 643 | bool Value::operator!=(const Value& other) const { return !(*this == other); } |
| 644 | |
| 645 | const char* Value::asCString() const { |
| 646 | JSON_ASSERT_MESSAGE(type_ == stringValue, |
| 647 | "in Json::Value::asCString(): requires stringValue"); |
| 648 | if (value_.string_ == nullptr) |
| 649 | return nullptr; |
| 650 | unsigned this_len; |
| 651 | char const* this_str; |
| 652 | decodePrefixedString(this->allocated_, this->value_.string_, &this_len, |
| 653 | &this_str); |
| 654 | return this_str; |
| 655 | } |
| 656 | |
| 657 | #if JSONCPP_USING_SECURE_MEMORY |
| 658 | unsigned Value::getCStringLength() const { |
no test coverage detected