The input forward iterator for tokens.
More...
#include <tokenizer.h>
The input forward iterator for tokens.
- Author
- Henner Zeller
Definition at line 127 of file tokenizer.h.
StringTokenizer::iterator::iterator |
( |
const StringTokenizer & |
tok, |
|
|
const char * |
end |
|
) |
| |
|
inlineprivate |
StringTokenizer::iterator::iterator |
( |
| ) |
|
|
inline |
virtual StringTokenizer::iterator::~iterator |
( |
| ) |
|
|
inlinevirtual |
StringTokenizer::iterator::iterator |
( |
const iterator & |
i | ) |
|
|
inline |
char StringTokenizer::iterator::nextDelimiter |
( |
| ) |
const |
|
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 195 of file tokenizer.h.
bool StringTokenizer::iterator::operator!= |
( |
const iterator & |
other | ) |
const |
|
inline |
compares to other iterator.
Usually used to compare against the end() iterator.
Definition at line 211 of file tokenizer.h.
const char* 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());
iterator& StringTokenizer::iterator::operator++ |
( |
| ) |
|
shifts this iterator to the next token in the string.
bool StringTokenizer::iterator::operator== |
( |
const iterator & |
other | ) |
const |
|
inline |
compares to other iterator.
Usually used to compare against the end() iterator.
Definition at line 203 of file tokenizer.h.
const char* StringTokenizer::iterator::endp |
|
private |
const char* StringTokenizer::iterator::start |
|
private |
char* StringTokenizer::iterator::token |
|
private |
const char* StringTokenizer::iterator::tokEnd |
|
private |
The documentation for this class was generated from the following file: