| 669 | #endif |
| 670 | |
| 671 | bool Value::getString(char const** begin, char const** end) const { |
| 672 | if (type_ != stringValue) |
| 673 | return false; |
| 674 | if (value_.string_ == nullptr) |
| 675 | return false; |
| 676 | unsigned length; |
| 677 | decodePrefixedString(this->allocated_, this->value_.string_, &length, begin); |
| 678 | *end = *begin + length; |
| 679 | return true; |
| 680 | } |
| 681 | |
| 682 | JSONCPP_STRING Value::asString() const { |
| 683 | switch (type_) { |
no test coverage detected