| 622 | #endif |
| 623 | |
| 624 | bool Value::getString(char const** begin, char const** end) const { |
| 625 | if (type() != stringValue) |
| 626 | return false; |
| 627 | if (value_.string_ == nullptr) |
| 628 | return false; |
| 629 | unsigned length; |
| 630 | decodePrefixedString(this->isAllocated(), this->value_.string_, &length, begin); |
| 631 | *end = *begin + length; |
| 632 | return true; |
| 633 | } |
| 634 | |
| 635 | #ifdef JSONCPP_HAS_STRING_VIEW |
| 636 | ErrorCode Value::get(std::string_view& view) const { |
no test coverage detected