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