#include "CTBxmlLexer.hxx"
Public Types | |
enum | mode { tagordata, tagattr, attrval, valsquote, valdquote } |
Public Methods | |
CTBxmlLexer () | |
void | Get (istream &is, CTBxmlLexerToken <) |
void | Clear () |
int | NLine () const |
int | NColumn () const |
void | Mode (int i_mode) |
int | Mode () const |
void | Dump (int i_indent=0, ostream &os=cout, const char *p_text=0) const |
Private Methods | |
int | GetChar (istream &is) |
void | GetEntity (istream &is, CTBxmlLexerToken <) |
void | GetWhite (istream &is, CTBxmlLexerToken <) |
void | GetName (istream &is, CTBxmlLexerToken <) |
Private Attributes | |
int | mi_mode |
int | mi_nline_t |
int | mi_ncolumn_t |
int | mi_nline_s |
int | mi_ncolumn_s |
Definition at line 20 of file CTBxmlLexer.hxx.
|
Lexer mode.
Definition at line 22 of file CTBxmlLexer.hxx. |
|
Default constructor.
Definition at line 36 of file CTBxmlLexer.cxx. |
|
Extract lext token lt from stream is.
Definition at line 49 of file CTBxmlLexer.cxx. Referenced by CTBxmlIStream::GetLexerToken().
|
|
Reset lexer context.
Definition at line 272 of file CTBxmlLexer.cxx. |
|
Returns line number at begin of last token (1 based).
Definition at line 18 of file CTBxmlLexer.icc. Referenced by CTBxmlIStream::ToStream().
|
|
Returns column number at begin of last token (1 based).
Definition at line 26 of file CTBxmlLexer.icc. Referenced by CTBxmlIStream::ToStream().
|
|
Set lexer mode to i_mode. The set of tokens recognized by the lexer is determined by the `mode' given as one of the values of CTBxmlLexer::mode :
Definition at line 93 of file CTBxmlLexer.icc. Referenced by CTBxmlIStream::GetLexerToken().
|
|
Returns lexer mode.
Definition at line 102 of file CTBxmlLexer.icc. |
|
Dump.
Definition at line 286 of file CTBxmlLexer.cxx. Referenced by CTBxmlIStream::Dump().
|
|
Get next character from stream is.
Definition at line 306 of file CTBxmlLexer.cxx. Referenced by Get(), GetEntity(), GetName(), and GetWhite().
|
|
Get rest of an entity.
Definition at line 325 of file CTBxmlLexer.cxx. Referenced by Get().
|
|
Get rest of white space.
Definition at line 353 of file CTBxmlLexer.cxx. Referenced by Get().
|
|
Get rest of name.
Definition at line 367 of file CTBxmlLexer.cxx. Referenced by Get().
|
|
lexer mode, mask of enabled.
Definition at line 50 of file CTBxmlLexer.hxx. |
|
current line number (token).
Definition at line 51 of file CTBxmlLexer.hxx. |
|
current column number (token).
Definition at line 52 of file CTBxmlLexer.hxx. |
|
current line number (stream).
Definition at line 53 of file CTBxmlLexer.hxx. |
|
current column number (stream).
Definition at line 54 of file CTBxmlLexer.hxx. |