| 3051 | } |
| 3052 | |
| 3053 | bool Value::getString(char const** str, char const** cend) const { |
| 3054 | if (type_ != stringValue) return false; |
| 3055 | if (value_.string_ == 0) return false; |
| 3056 | unsigned length; |
| 3057 | decodePrefixedString(this->allocated_, this->value_.string_, &length, str); |
| 3058 | *cend = *str + length; |
| 3059 | return true; |
| 3060 | } |
| 3061 | |
| 3062 | std::string Value::asString() const { |
| 3063 | switch (type_) { |
no test coverage detected