In file ../include/EST_Token.h:
class EST_TokenStream |
A class that allows the reading of EST_Tokens from a file stream, pipe or string.
![]() | EST_TokenStream () | ||||||||||||||||||||||||
![]() | ~EST_TokenStream () will close file if appropriate for type | ||||||||||||||||||||||||
![]() | stream access functions
| ||||||||||||||||||||||||
![]() | stream initialization functions
| ||||||||||||||||||||||||
![]() | miscellaneous
|
![]() | |
A class that allows the reading of EST_Tokens from a file stream, pipe or string. It automatically tokenizes a file based on user definable whitespace and punctuation.The definitions of whitespace and punctuation are user definable. Also support for single character symbols is included. Single character symbols always are treated as individual tokens irrespective of their white space context. Also a quote mode can be used to read uqoted tokens.
The setting of whitespace, pre and post punctuation, single character symbols and quote mode must be down (immediately) after opening the stream.
There is no unget but peek provides look ahead of one token.
Note there is an interesting issue about what to do about the last whitespace in the file. Should it be ignored or should it be attached to a token with a name string of length zero. In unquoted mode the eof() will return TRUE if the next token name is empty (the mythical last token). In quoted mode the last must be returned so eof will not be raised.
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