| 686 | #endif |
| 687 | |
| 688 | bool Value::getString(char const** str, char const** cend) const { |
| 689 | if (type_ != stringValue) return false; |
| 690 | if (value_.string_ == 0) return false; |
| 691 | unsigned length; |
| 692 | decodePrefixedString(this->allocated_, this->value_.string_, &length, str); |
| 693 | *cend = *str + length; |
| 694 | return true; |
| 695 | } |
| 696 | |
| 697 | JSONCPP_STRING Value::asString() const { |
| 698 | switch (type_) { |
no test coverage detected