I'm parsing tokens with QTextStream
to extract characters one by one calling stream >> ch
.
I wonder if there is a way to get a character back to stream, so it will be the next character read from it.
stream << ch
always adds one character to the end of the stream, but is there a way to "unget" QChar
to the top?