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