StyleLexer

The StyleLexer class converts a data stream into a stream of style tokens. More...

Publicly inherits QObject.

Public Methods

StyleLexer( );
~StyleLexer( );

Public Slots

voiddata( const char* bytes, int length );
voidendOfData( );

Signals

voiddone( );
voidtoken( Token token, QString text );

Private Data Members

bool_done;
QString_leftover;

Detailed Documentation

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.

Public Slots Documentation

void data ( const char* bytes, int length );

Tokenize as much of the new data as possible, and store the rest for later.

void endOfData ( );

Tokenized any remaining text, and die.

Signals Documentation

void done ( );

Emitted after the last token has been emitted.

void token ( Token token, QString text );

Emit a token and the actual text that was recognized.


Return to Index.
Automatically generated on Aug 11 23:32