The SgmlLexer class tokenizes a data stream from a Request. More...
Publicly inherits QObject.
SgmlLexer | ( ); | |
void | dtd | ( Dtd* dtd ); |
Mode | mode | ( ); |
~SgmlLexer | ( ); |
void | data | ( const char* bytes, int end ); |
void | endOfData | ( ); |
void | mode | ( Mode m ); |
void | doToken | ( Token token, int length ); |
void | done | ( ); |
void | token | ( Token token, const char* text ); |
char* | _buf; |
int | _bufEnd; |
int | _bufSize; |
int | _bufStart; |
bool | _done; |
Dtd* | _dtd; |
Mode | _mode; |
char* | _token; |
int | _tokenSize; |
The SgmlLexer class tokenizes a data stream from a Request.
The SgmlLexer accepts raw data from a request, and converts into SGML tokens. Each token is emitted one at a time, usually to an SgmlParser or a DtdParser. The SgmlLexer automatically destroys itself after the last token has been emitted.Create a new SgmlLexer.
Set the DTD used for resolving parameter entity references.
Return the current lexer mode.
Destroy the lexer.
Store the incoming text, and tokenize as much of it as we can.
Finish tokenizing the remaining data, and die.
Sets the major mode for the lexer. The mode can be CdataMode, RcdataMode, PcdataMode, or MarkupMode. The tokens and delimiters are slightly different between modes.
Emit the token, and move the input pointer to the next character.
This signal is emitted after the last token has been emitted.
This signal is emitted as each token is recognized. The token is the type of token, and the text is the actual string that was recognized.