#include <StringTokenizer.hpp>
Collaboration diagram for StringTokenizer:

Public Member Functions | |
| StringTokenizer (const std::string &tokenizable_) | |
| std::string | nextToken () |
| bool | hasMoreTokens () |
| int | countTokens () |
| string | getRemainingTokens () |
Private Member Functions | |
| int | initialTokenCount () |
Private Attributes | |
| std::string | tokenizable |
| int | nextAnalyzableChar |
| int | remainingTokens |
Those methods have the same name as the ones in java.util.StringTokenizer. It was developed with this objective.
|
|
Constructs a Tokenizer.
|
|
|
Returns the number of available tokens in the string |
|
|
Returns the string containing remaining tokens. DOES NOT advance the token pointer!!!! |
|
|
Indicates if more tokens are available. |
|
|
scans the string and count the number of tokens |
|
|
Returns the next token contained in the string. |
|
|
keeps the index of the next possible token |
|
|
number of remaining tokens |
|
|
the string to be tokenized |
1.3.3