Port of GNU Classpath StringTokenizer. More...
#include <StringTokenizer.h>
Public Member Functions | |
StringTokenizer (const String &theString, const String &theTokens=" \t\n\r", bool fReturnTokens=false) | |
StringTokenizer (const StringTokenizer &) | |
StringTokenizer & | operator= (const StringTokenizer &) |
bool | HasMoreTokens () const |
void | NextToken (String &theToken) |
int | CountTokens () const |
void | Reset () |
void | CheckMem () const |
void | ValidateMem () const |
Protected Member Functions | |
int | FindNextDelimiterIndex (int theStartIndex) const |
Port of GNU Classpath StringTokenizer.
Definition at line 39 of file StringTokenizer.h.
StringTokenizer::StringTokenizer | ( | const String & | theString, | |
const String & | theTokens = " \t\n\r" , |
|||
bool | fReturnTokens = false | |||
) |
Constructs a tokenizer for the target string. No copies of any input strings are made.
theString | string to tokenize | |
theTokens | string of delimiters used to parse target, default is " \t\n\r" | |
fReturnTokens | if true, delimiter characters are also returned as tokens, default is false |
Definition at line 29 of file StringTokenizer.cpp.
int StringTokenizer::CountTokens | ( | ) | const |
Count the number of tokens yet to be parsed
Definition at line 133 of file StringTokenizer.cpp.
bool StringTokenizer::HasMoreTokens | ( | ) | const |
Determine if there are tokens remaining
Definition at line 64 of file StringTokenizer.cpp.
void StringTokenizer::NextToken | ( | String & | theToken | ) |
Retrieve the next token to be parsed; behavior is undefined if there are no more tokens
theToken | next token string |
Definition at line 95 of file StringTokenizer.cpp.