An auxiliary class. The class StringTokenzier is a java style utility class for retrieving tokens separated by delims.
More...
#include <Utility.h>
|
string | s |
|
vector< char > | delims |
|
int | index |
|
An auxiliary class. The class StringTokenzier is a java style utility class for retrieving tokens separated by delims.
StringTokenizer::StringTokenizer |
( |
string |
s, |
|
|
string |
delims = "\t\n " |
|
) |
| |
Construct a StringTokenizer for specific string.
- Parameters
-
s | string |
delims | characters considered as separators. |
void StringTokenizer::getAllTokens |
( |
vector< string > & |
tokens | ) |
|
Get all tokens in the string.
- Parameters
-
bool StringTokenizer::hasMoreTokens |
( |
| ) |
const |
Check if there're more tokens left.
- Returns
- true if have more tokens; otherwise false
string StringTokenizer::nextToken |
( |
| ) |
|
Get the next avaiable token.
- Returns
- a token
The documentation for this class was generated from the following files: