42 #ifndef QDECLARATIVEJSLEXER_P_H 43 #define QDECLARATIVEJSLEXER_P_H 56 #include "private/qdeclarativejsglobal_p.h" 58 #include <QtCore/QString> 73 void setCode(
const QString &
c,
int lineno);
87 {
int col = currentColumnNo();
return (col > 0) ? col - 1 : col; }
172 void setDone(
State s);
175 int lookupKeyword(
const char *);
177 bool isWhiteSpace()
const;
178 bool isLineTerminator()
const;
180 bool isOctalDigit(
ushort c)
const;
188 static unsigned char convertHex(
ushort c1);
192 static bool isIdentLetter(
ushort c);
193 static bool isDecimalDigit(
ushort c);
195 inline int ival()
const {
return qsyylval.ival; }
196 inline double dval()
const {
return qsyylval.dval; }
204 void record16(
QChar c);
205 void recordStartPos();
207 int findReservedWord(
const QChar *buffer,
int size)
const;
209 void syncProhibitAutomaticSemicolon();
QString errorMessage() const
int characterCount() const
static ShiftResult shift(const QBezier *orig, QBezier *shifted, qreal offset, qreal threshold)
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
void setErrorMessage(const char *err)
void setErrorMessage(const QString &err)
#define QML_PARSER_EXPORT
bool prohibitAutomaticSemicolon
const QChar * characterBuffer() const
#define QT_QML_END_NAMESPACE
#define QT_QML_BEGIN_NAMESPACE
The State element defines configurations of objects and properties.
int startColumnNo() const
static bool isHexDigit(const char c)
int currentColumnNo() const
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
ParenthesesState parenthesesState
bool prevTerminator() const
int currentLineNo() const