| 590 | } |
| 591 | |
| 592 | bool Value::getString(char const** str, char const** cend) const { |
| 593 | if (type_ != stringValue) return false; |
| 594 | if (value_.string_ == 0) return false; |
| 595 | unsigned length; |
| 596 | decodePrefixedString(this->allocated_, this->value_.string_, &length, str); |
| 597 | *cend = *str + length; |
| 598 | return true; |
| 599 | } |
| 600 | |
| 601 | std::string Value::asString() const { |
| 602 | switch (type_) { |
no test coverage detected