| 3283 | #endif |
| 3284 | |
| 3285 | bool Value::getString(char const **begin, char const **end) const |
| 3286 | { |
| 3287 | if (type() != stringValue) |
| 3288 | return false; |
| 3289 | if (value_.string_ == nullptr) |
| 3290 | return false; |
| 3291 | unsigned length; |
| 3292 | decodePrefixedString(this->isAllocated(), this->value_.string_, &length, begin); |
| 3293 | *end = *begin + length; |
| 3294 | return true; |
| 3295 | } |
| 3296 | |
| 3297 | String Value::asString() const |
| 3298 | { |
no test coverage detected