| 866 | } |
| 867 | |
| 868 | bool Reader::decodeString(Token& token) { |
| 869 | JSONCPP_STRING decoded_string; |
| 870 | if (!decodeString(token, decoded_string)) |
| 871 | return false; |
| 872 | Value decoded(decoded_string); |
| 873 | currentValue().swapPayload(decoded); |
| 874 | currentValue().setOffsetStart(token.start_ - begin_); |
| 875 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 876 | return true; |
| 877 | } |
| 878 | |
| 879 | bool Reader::decodeString(Token& token, JSONCPP_STRING& decoded) { |
| 880 | decoded.reserve(static_cast<size_t>(token.end_ - token.start_ - 2)); |
nothing calls this directly
no test coverage detected