The StyleLexer class converts a data stream into a stream of style tokens. More...
Publicly inherits QObject.
StyleLexer | ( ); | |
~StyleLexer | ( ); |
void | data | ( const char* bytes, int length ); |
void | endOfData | ( ); |
void | done | ( ); |
void | token | ( Token token, QString text ); |
bool | _done; |
QString | _leftover; |
The StyleLexer class converts a data stream into a stream of style tokens.
The StyleLexer emits a series of tokens, and is usually connected to a StyleParser. After the last token has been emitted, the StyleLexer automatically deletes itself.Tokenize as much of the new data as possible, and store the rest for later.
Tokenized any remaining text, and die.
Emitted after the last token has been emitted.
Emit a token and the actual text that was recognized.