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