51 #ifndef Patternist_XQueryTokenizer_H 52 #define Patternist_XQueryTokenizer_H 137 const int advance = 1);
142 const int advance = 1);
152 inline char peekAhead(
const int length = 1)
const;
160 const int offset = 1)
const;
165 static inline bool isDigit(
const char ch);
214 int scanUntil(
const char *
const content);
268 const CharacterSkips &characterSkips);
294 const bool inLiteral,
int scanUntil(const char *const content)
#define QT_END_NAMESPACE
This macro expands to.
int peekForColonColon() const
QStack< State > m_stateStack
Token tokenAndAdvance(const TokenType code, const int advance=1)
QStack< Token > m_tokenStack
void setState(const State s)
bool consumeRawWhitespace()
static qreal position(QGraphicsObject *item, QDeclarativeAnchorLine::AnchorLine anchorLine)
TokenType consumeWhitespace()
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
const QChar current() const
virtual void setParserContext(const ParserContext::Ptr &parseInfo)
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
static QString normalizeEOL(const QString &input, const CharacterSkips &characterSkips)
The QChar class provides a 16-bit Unicode character.
static const TokenMap * lookupKeyword(const QString &keyword)
virtual int commenceScanOnly()
Token tokenizeNumberLiteral()
#define QT_BEGIN_NAMESPACE
This macro expands to.
const NamePool::Ptr m_namePool
static bool isDigit(const char ch)
The namespace for the internal API of QtXmlPatterns.
A hand-written tokenizer which tokenizes XQuery 1.0 & XPath 2.0, and delivers tokens to the Bison gen...
virtual void resumeTokenizationFrom(const int position)
The State element defines configurations of objects and properties.
Tokenizer::TokenType consumeComment()
Parses comments: (: comment content :). It recurses for parsing nested comments.
bool aheadEquals(const char *const chs, const int len, const int offset=1) const
QString tokenizeCharacterReference()
QHash< QString, QChar > m_charRefs
Token tokenizeNCNameOrQName()
XQueryTokenizer(const QString &query, const QUrl &location, const State startingState=Default)
static bool isTypeToken(const TokenType t)
char peekAhead(const int length=1) const
static QTestResult::TestLocation location
char peekCurrent() const
Returns the character at the current position, converted to ASCII.
static bool isNCNameStart(const QChar ch)
static bool isOperatorKeyword(const TokenType)
Base class for all tokenizers.
Token tokenAndChangeState(const TokenType code, const State state, const int advance=1)
static bool isNCNameBody(const QChar ch)
QSet< int > CharacterSkips
Contains functions and classes used by the parser and tokenizer.
static bool isPhraseKeyword(const TokenType code)
Token tokenizeStringLiteral()
Token attributeAsRaw(const QChar separator, int &stack, const int startPos, const bool inLiteral, QString &result)
QChar charForReference(const QString &reference)