|
ucommon
|
The input forward iterator for tokens. More...
#include <tokenizer.h>
Public Member Functions | |
| iterator (iterator &i) | |
| copy constructor. | |
| char | nextDelimiter () |
| returns the next delimiter after the current token or '\0', if there are no following delimiters. | |
| bool | operator!= (iterator &other) |
| compares to other iterator. | |
| char * | operator* () |
| returns the immutable string this iterator points to or '0' if no token is available (i.e. | |
| iterator & | operator++ () |
| shifts this iterator to the next token in the string. | |
| iterator & | operator= (iterator &i) |
| assignment operator. | |
| bool | operator== (iterator &other) |
| compares to other iterator. | |
Friends | |
| class | StringTokenizer |
The input forward iterator for tokens.
Definition at line 129 of file tokenizer.h.
| char ost::StringTokenizer::iterator::nextDelimiter | ( | ) | [inline] |
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).
Definition at line 197 of file tokenizer.h.
| bool ost::StringTokenizer::iterator::operator!= | ( | iterator & | other | ) | [inline] |
compares to other iterator.
Usually used to compare against the end() iterator.
Definition at line 213 of file tokenizer.h.
| char* ost::StringTokenizer::iterator::operator* | ( | ) |
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());
| bool ost::StringTokenizer::iterator::operator== | ( | iterator & | other | ) | [inline] |
compares to other iterator.
Usually used to compare against the end() iterator.
Definition at line 205 of file tokenizer.h.
1.7.6.1