#include <qslexer.h>
Lista de todos los miembros.
Tipos públicos |
| enum | State {
Start,
Identifier,
InIdentifier,
InSingleLineComment,
InMultiLineComment,
InNum,
InNum0,
InHex,
InOctal,
InDecimal,
InExponentIndicator,
InExponent,
Hex,
Octal,
Number,
String,
Eof,
InString,
InEscapeSequence,
InHexEscape,
InUnicodeEscape,
Other,
Bad,
KeywordNumber
} |
| enum | ParenthesesState { IgnoreParentheses,
CountParentheses,
BalancedParentheses
} |
Métodos públicos |
| | QSLexer () |
| | ~QSLexer () |
| void | setCode (const QString &c, int id, int lineno=0) |
| int | lex () |
| int | lineNo () const |
| int | sourceId () const |
| bool | prevTerminator () const |
| bool | scanRegExp () |
| State | lexerState () const |
| QString | errorMessage () const |
| void | setErrorMessage (const QString &err) |
| void | setErrorMessage (const char *err) |
| void | clearUstr () |
Métodos públicos estáticos |
| static QSLexer * | lexer () |
| static uchar | convertHex (ushort c) |
| static uchar | convertHex (ushort c1, ushort c2) |
| static QChar | convertUnicode (ushort c1, ushort c2, ushort c3, ushort c4) |
| static bool | isIdentLetter (ushort c) |
| static bool | isDecimalDigit (ushort c) |
Atributos públicos |
| QString | pattern |
| QString | flags |
Documentación de las enumeraciones miembro de la clase
- Valores de enumeraciones:
| IgnoreParentheses |
|
| CountParentheses |
|
| BalancedParentheses |
|
- Valores de enumeraciones:
| Start |
|
| Identifier |
|
| InIdentifier |
|
| InSingleLineComment |
|
| InMultiLineComment |
|
| InNum |
|
| InNum0 |
|
| InHex |
|
| InOctal |
|
| InDecimal |
|
| InExponentIndicator |
|
| InExponent |
|
| Hex |
|
| Octal |
|
| Number |
|
| String |
|
| Eof |
|
| InString |
|
| InEscapeSequence |
|
| InHexEscape |
|
| InUnicodeEscape |
|
| Other |
|
| Bad |
|
| KeywordNumber |
|
Documentación del constructor y destructor
Documentación de las funciones miembro
| void QSLexer::clearUstr |
( |
| ) |
[inline] |
| static uchar QSLexer::convertHex |
( |
ushort |
c | ) |
[inline, static] |
| QString QSLexer::errorMessage |
( |
| ) |
const [inline] |
| static bool QSLexer::isDecimalDigit |
( |
ushort |
c | ) |
[inline, static] |
| static bool QSLexer::isIdentLetter |
( |
ushort |
c | ) |
[inline, static] |
| static QSLexer* QSLexer::lexer |
( |
| ) |
[inline, static] |
| State QSLexer::lexerState |
( |
| ) |
const [inline] |
| int QSLexer::lineNo |
( |
| ) |
const [inline] |
| bool QSLexer::prevTerminator |
( |
| ) |
const [inline] |
| bool QSLexer::scanRegExp |
( |
| ) |
|
| void QSLexer::setCode |
( |
const QString & |
c, |
|
|
int |
id, |
|
|
int |
lineno = 0 |
|
) |
| |
Sets the code to be parsed. lineno specifies which line which is to be interpreted as line number zero. id specifies the unique identification number for this source code unit.
| void QSLexer::setErrorMessage |
( |
const char * |
err | ) |
[inline] |
| void QSLexer::setErrorMessage |
( |
const QString & |
err | ) |
[inline] |
| int QSLexer::sourceId |
( |
| ) |
const [inline] |
Documentación de los datos miembro
La documentación para esta clase fue generada a partir de los siguientes ficheros: