| 3041 | bool Value::operator!=(const Value& other) const { return !(*this == other); } |
| 3042 | |
| 3043 | const char* Value::asCString() const { |
| 3044 | JSON_ASSERT_MESSAGE(type_ == stringValue, |
| 3045 | "in Json::Value::asCString(): requires stringValue"); |
| 3046 | if (value_.string_ == 0) return 0; |
| 3047 | unsigned this_len; |
| 3048 | char const* this_str; |
| 3049 | decodePrefixedString(this->allocated_, this->value_.string_, &this_len, &this_str); |
| 3050 | return this_str; |
| 3051 | } |
| 3052 | |
| 3053 | bool Value::getString(char const** str, char const** cend) const { |
| 3054 | if (type_ != stringValue) return false; |
nothing calls this directly
no test coverage detected