In file ../include/EST_Token.h:
class EST_Token |
This class is similar to EST_String but also maintains the original punctuation and whitespace found around the token.
![]() | EST_Token () | ||||||||||||||||||||||||||||||||||||||
![]() | EST_Token (const EST_String p) | ||||||||||||||||||||||||||||||||||||||
![]() | init () | ||||||||||||||||||||||||||||||||||||||
![]() | Basic access to fields
| ||||||||||||||||||||||||||||||||||||||
![]() | set_row (int r) | ||||||||||||||||||||||||||||||||||||||
![]() | set_col (int c) | ||||||||||||||||||||||||||||||||||||||
![]() | set_filepos (int c) Set file position in original EST_TokenStream | ||||||||||||||||||||||||||||||||||||||
![]() | lstring () Return lower case version of token name | ||||||||||||||||||||||||||||||||||||||
![]() | ustring () Return upper case version of token name | ||||||||||||||||||||||||||||||||||||||
![]() | row (void) const Line number in original EST_TokenStream | ||||||||||||||||||||||||||||||||||||||
![]() | col (void) const Line position in original EST_TokenStream | ||||||||||||||||||||||||||||||||||||||
![]() | filepos (void) const file position in original EST_TokenStream | ||||||||||||||||||||||||||||||||||||||
![]() | pos_description () const A string describing current position, suitable for error messages | ||||||||||||||||||||||||||||||||||||||
![]() | operator = (const EST_Token &a) | ||||||||||||||||||||||||||||||||||||||
![]() | operator = (const EST_String &a) | ||||||||||||||||||||||||||||||||||||||
![]() | operator == (const EST_String &a) | ||||||||||||||||||||||||||||||||||||||
![]() | operator != (const EST_String &a) | ||||||||||||||||||||||||||||||||||||||
![]() | operator == (const char* a) | ||||||||||||||||||||||||||||||||||||||
![]() | operator != (const char* a) |
![]() | |
This class is similar to EST_String but also maintains the original punctuation and whitespace found around the token.EST_Token's primary use is with EST_TokenStream class which allows easy tokenizing of ascii files.
A token consists of four parts, any of which may be empty: a name, the actual token, preceding whitespace, preceding punctuation, the name and succeeding punctuation.
Alphabetic index HTML hierarchy of classes or Java
This page is part of the
Edinburgh Speech Tools Library documentation
Copyright University of Edinburgh 1997
Contact:
speech_tools@cstr.ed.ac.uk