| 782 | } |
| 783 | |
| 784 | bool Reader::decodeString(Token &token) { |
| 785 | std::string decoded; |
| 786 | if (!decodeString(token, decoded)) |
| 787 | return false; |
| 788 | currentValue() = decoded; |
| 789 | currentValue().setOffsetStart(token.start_ - begin_); |
| 790 | currentValue().setOffsetLimit(token.end_ - begin_); |
| 791 | return true; |
| 792 | } |
| 793 | |
| 794 | bool Reader::decodeString(Token &token, std::string &decoded) { |
| 795 | decoded.reserve(token.end_ - token.start_ - 2); |
nothing calls this directly
no test coverage detected