78 inline int GetColumn() const |
78 inline int GetColumn() const |
79 { |
79 { |
80 return mPosition - mLineBreakPosition; |
80 return mPosition - mLineBreakPosition; |
81 } |
81 } |
82 |
82 |
83 inline EToken GetTokenType() const |
83 inline TokenType GetTokenType() const |
84 { |
84 { |
85 return mTokenType; |
85 return mTokenType; |
86 } |
86 } |
87 |
87 |
88 static String GetTokenString (EToken a); |
88 static String GetTokenString (TokenType a); |
89 |
89 |
90 private: |
90 private: |
91 char* mData; |
91 char* mData; |
92 char* mPosition; |
92 char* mPosition; |
93 char* mLineBreakPosition; |
93 char* mLineBreakPosition; |
94 String mTokenText, |
94 String mTokenText, |
95 mLastToken; |
95 mLastToken; |
96 EToken mTokenType; |
96 TokenType mTokenType; |
97 int mLine; |
97 int mLine; |
98 |
98 |
99 bool CheckString (const char* c, int flags = 0); |
99 bool CheckString (const char* c, int flags = 0); |
100 |
100 |
101 // Yields a copy of the current position information. |
101 // Yields a copy of the current position information. |