| 3012 | #endif |
| 3013 | |
| 3014 | bool Value::getString(char const **begin, char const **end) const { |
| 3015 | if (type() != stringValue) |
| 3016 | return false; |
| 3017 | if (value_.string_ == nullptr) |
| 3018 | return false; |
| 3019 | unsigned length; |
| 3020 | decodePrefixedString(this->isAllocated(), this->value_.string_, &length, |
| 3021 | begin); |
| 3022 | *end = *begin + length; |
| 3023 | return true; |
| 3024 | } |
| 3025 | |
| 3026 | String Value::asString() const { |
| 3027 | switch (type()) { |
no test coverage detected