| 3052 | #endif |
| 3053 | |
| 3054 | bool Value::getString(char const** begin, char const** end) const { |
| 3055 | if (type() != stringValue) |
| 3056 | return false; |
| 3057 | if (value_.string_ == nullptr) |
| 3058 | return false; |
| 3059 | unsigned length; |
| 3060 | decodePrefixedString(this->isAllocated(), this->value_.string_, &length, |
| 3061 | begin); |
| 3062 | *end = *begin + length; |
| 3063 | return true; |
| 3064 | } |
| 3065 | |
| 3066 | String Value::asString() const { |
| 3067 | switch (type()) { |
no test coverage detected