| 614 | #endif |
| 615 | |
| 616 | bool Value::getString(char const** begin, char const** end) const { |
| 617 | if (type() != stringValue) |
| 618 | return false; |
| 619 | if (value_.string_ == nullptr) |
| 620 | return false; |
| 621 | unsigned length; |
| 622 | decodePrefixedString(this->isAllocated(), this->value_.string_, &length, |
| 623 | begin); |
| 624 | *end = *begin + length; |
| 625 | return true; |
| 626 | } |
| 627 | |
| 628 | String Value::asString() const { |
| 629 | switch (type()) { |
no test coverage detected