| 3110 | #endif |
| 3111 | |
| 3112 | bool Value::getString(char const** str, char const** cend) const { |
| 3113 | if (type_ != stringValue) |
| 3114 | return false; |
| 3115 | if (value_.string_ == 0) |
| 3116 | return false; |
| 3117 | unsigned length; |
| 3118 | decodePrefixedString(this->allocated_, this->value_.string_, &length, str); |
| 3119 | *cend = *str + length; |
| 3120 | return true; |
| 3121 | } |
| 3122 | |
| 3123 | JSONCPP_STRING Value::asString() const { |
| 3124 | switch (type_) { |
no test coverage detected