| 846 | } |
| 847 | |
| 848 | bool Reader::decodeString(Token& token) { |
| 849 | JSONCPP_STRING decoded_string; |
| 850 | if (!decodeString(token, decoded_string)) |
| 851 | return false; |
| 852 | Value decoded(decoded_string); |
| 853 | currentValue().swapPayload(decoded); |
| 854 | currentValue().setOffsetStart(token.start_ - begin_); |
| 855 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 856 | return true; |
| 857 | } |
| 858 | |
| 859 | bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) { |
| 860 | decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2)); |
nothing calls this directly
no test coverage detected