iterator (const iterator &i)
copy constructor. iterator & operator= (const iterator &i)
assignment operator. iterator & operator++ () throw ( NoSuchElementException )
shifts this iterator to the next token in the string.
const char * operator* () throw ( NoSuchElementException )
returns the immutable string this iterator points to or '0' if no token is available (i.e.
char nextDelimiter () const
returns the next delimiter after the current token or '\0', if there are no following delimiters.
bool operator== (const iterator &other) const
compares to other iterator.
bool operator!= (const iterator &other) const
compares to other iterator.
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());