StringTokenizer Class Reference
[Text]

Port of GNU Classpath StringTokenizer. More...

#include <StringTokenizer.h>

Inheritance diagram for StringTokenizer:
IMemoryValidate

List of all members.

Public Member Functions

 StringTokenizer (const String &theString, const String &theTokens=" \t\n\r", bool fReturnTokens=false)
 StringTokenizer (const StringTokenizer &)
StringTokenizeroperator= (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

Detailed Description

Port of GNU Classpath StringTokenizer.

Definition at line 39 of file StringTokenizer.h.


Constructor & Destructor Documentation

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.

Parameters:
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.


Member Function Documentation

int StringTokenizer::CountTokens (  )  const

Count the number of tokens yet to be parsed

Returns:
number of remaining tokens

Definition at line 133 of file StringTokenizer.cpp.

bool StringTokenizer::HasMoreTokens (  )  const

Determine if there are tokens remaining

Returns:
true if there are more tokens

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

Parameters:
theToken next token string

Definition at line 95 of file StringTokenizer.cpp.


The documentation for this class was generated from the following files: