| 2739 | bool Value::operator!=(const Value& other) const { return !(*this == other); } |
| 2740 | |
| 2741 | const char* Value::asCString() const { |
| 2742 | JSON_ASSERT_MESSAGE(type_ == stringValue, |
| 2743 | "in Json::Value::asCString(): requires stringValue"); |
| 2744 | if (value_.string_ == 0) return 0; |
| 2745 | unsigned this_len; |
| 2746 | char const* this_str; |
| 2747 | decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str); |
| 2748 | return this_str; |
| 2749 | } |
| 2750 | |
| 2751 | bool Value::getString(char const** str, char const** cend) const { |
| 2752 | if (type_ != stringValue) return false; |
nothing calls this directly
no test coverage detected