|
UCommon
|
The input forward iterator for tokens. More...
#include <tokenizer.h>
Public Member Functions | |
| iterator (const iterator &i) | |
| copy constructor. | |
| 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... | |
| const char * | operator* () throw ( NoSuchElementException ) |
| returns the immutable string this iterator points to or '0' if no token is available (i.e. More... | |
| iterator & | operator++ () throw ( NoSuchElementException ) |
| shifts this iterator to the next token in the string. | |
| iterator & | operator= (const iterator &i) |
| assignment operator. | |
| bool | operator== (const iterator &other) const |
| compares to other iterator. More... | |
Friends | |
| class | StringTokenizer |
The input forward iterator for tokens.
Definition at line 129 of file tokenizer.h.
|
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 196 of file tokenizer.h.
|
inline |
compares to other iterator.
Usually used to compare against the end() iterator.
Definition at line 212 of file tokenizer.h.
| const char* ost::StringTokenizer::iterator::operator* | ( | ) | ||
| throw | ( | NoSuchElementException | ||
| ) | ||||
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());
|
inline |
compares to other iterator.
Usually used to compare against the end() iterator.
Definition at line 204 of file tokenizer.h.
1.8.14