| 3155 | #endif |
| 3156 | |
| 3157 | bool Value::getString(char const** str, char const** cend) const { |
| 3158 | if (type_ != stringValue) return false; |
| 3159 | if (value_.string_ == 0) return false; |
| 3160 | unsigned length; |
| 3161 | decodePrefixedString(this->allocated_, this->value_.string_, &length, str); |
| 3162 | *cend = *str + length; |
| 3163 | return true; |
| 3164 | } |
| 3165 | |
| 3166 | JSONCPP_STRING Value::asString() const { |
| 3167 | switch (type_) { |
no test coverage detected