#include <misc.h>
Public Methods | |
| iterator () | |
| virtual | ~iterator () |
| iterator (const iterator &i) | |
| copy constructor. More... | |
| iterator & | operator= (const iterator &i) |
| assignment operator. More... | |
| iterator & | operator++ () THROWS(NoSuchElementException) |
| shifts this iterator to the next token in the string. More... | |
| const char * | operator * () THROWS(NoSuchElementException) |
| returns the immutable string this iterator points to or '0' if no token is available (i.e. More... | |
| char | nextDelimiter () const |
| returns the next delimiter after the current token or '\0', if there are no following delimiters. More... | |
| bool | operator== (const iterator &other) const |
| compares to other iterator. More... | |
| bool | operator!= (const iterator &other) const |
| compares to other iterator. More... | |
Friends | |
| class | StringTokenizer |
|
|
|
|
|
|
|
|
copy constructor.
|
|
|
returns the next delimiter after the current token or '\0', if there are no following delimiters. It returns the very next delimiter (even if skipAllDelim=true). |
|
|
returns the immutable string this iterator points to or '0' if no token is available (i.e. i == end()). Do not store pointers to this token, since it is invalidated for each iteration. If you need the token, copy it (e.g. with strdup()); |
|
|
compares to other iterator. |
|
|
shifts this iterator to the next token in the string.
|
|
|
assignment operator.
|
|
|
compares to other iterator. |
|
|
|
1.2.10 written by Dimitri van Heesch,
© 1997-2001