Changeset 846 for trunk/tools/qdoc3/tokenizer.h
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/tools/qdoc3/tokenizer.h
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 47 47 #define TOKENIZER_H 48 48 49 #include <qfile.h> 49 50 #include <qstack.h> 50 51 #include <qstring.h> 51 52 #include <stdio.h>53 52 54 53 #include "location.h" … … 77 76 Tok_typename, Tok_union, Tok_unsigned, Tok_using, Tok_virtual, 78 77 Tok_void, Tok_volatile, Tok_int64, Tok_Q_OBJECT, Tok_Q_OVERRIDE, 79 Tok_Q_PROPERTY, Tok_Q_ DECLARE_SEQUENTIAL_ITERATOR,78 Tok_Q_PROPERTY, Tok_Q_PRIVATE_PROPERTY, Tok_Q_DECLARE_SEQUENTIAL_ITERATOR, 80 79 Tok_Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR, 81 80 Tok_Q_DECLARE_ASSOCIATIVE_ITERATOR, … … 100 99 public: 101 100 Tokenizer(const Location& loc, const QByteArray &in); 102 Tokenizer(const Location& loc, FILE *in);101 Tokenizer(const Location& loc, QFile &file); 103 102 104 103 ~Tokenizer(); … … 109 108 110 109 const Location &location() const { return yyTokLoc; } 111 QString previousLexeme() const { return QString(yyPrevLex); }112 QString lexeme() const { return QString(yyLex); }110 QString previousLexeme() const; 111 QString lexeme() const; 113 112 QString version() const { return yyVersion; } 114 113 int braceDepth() const { return yyBraceDepth; } … … 147 146 if (ch == EOF) 148 147 return EOF; 149 // cast explicit ely to make sure the value of ch148 // cast explicitly to make sure the value of ch 150 149 // is in range [0..255] to avoid assert messages 151 150 // when using debug CRT that checks its input.
Note:
See TracChangeset
for help on using the changeset viewer.