ost::StringTokenizer::iterator Class Reference
The input forward iterator for tokens.
More...
#include <tokenizer.h>
List of all members.
Detailed Description
The input forward iterator for tokens.
- Author:
- Henner Zeller
Constructor & Destructor Documentation
ost::StringTokenizer::iterator::iterator |
( |
|
) |
[inline] |
virtual ost::StringTokenizer::iterator::~iterator |
( |
|
) |
[inline, virtual] |
ost::StringTokenizer::iterator::iterator |
( |
const iterator & |
i |
) |
[inline] |
Member Function Documentation
char ost::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).
bool ost::StringTokenizer::iterator::operator!= |
( |
const iterator & |
other |
) |
const [inline] |
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());
shifts this iterator to the next token in the string.
iterator& ost::StringTokenizer::iterator::operator= |
( |
const iterator & |
i |
) |
[inline] |
bool ost::StringTokenizer::iterator::operator== |
( |
const iterator & |
other |
) |
const [inline] |
Friends And Related Function Documentation
The documentation for this class was generated from the following file: