| 628 | } |
| 629 | |
| 630 | bool Reader::decodeString(Token& token) { |
| 631 | JSONCPP_STRING decoded_string; |
| 632 | if (!decodeString(token, decoded_string)) |
| 633 | return false; |
| 634 | Value decoded(decoded_string); |
| 635 | currentValue().swapPayload(decoded); |
| 636 | currentValue().setOffsetStart(token.start_ - begin_); |
| 637 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 638 | return true; |
| 639 | } |
| 640 | |
| 641 | bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) { |
| 642 | decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2)); |
nothing calls this directly
no test coverage detected