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