Tokenizer Class Reference

List of all members.

Public Member Functions

bool HasMoreTokens ()
bool MoveNext ()
System.String NextToken (System.String delimiters)
System.String NextToken ()
string RemainingString ()
void Reset ()
 Tokenizer (System.String source, System.String delimiters, bool includeDelims)
 Tokenizer (System.String source, System.String delimiters)
 Tokenizer (System.String source)

Properties

int Count [get]
System.Object Current [get]

Detailed Description

The class performs token processing in strings


Constructor & Destructor Documentation

Tokenizer ( System.String  source  ) 

Initializes a new class instance with a specified string to process

Parameters:
source String to tokenize
Tokenizer ( System.String  source,
System.String  delimiters 
)

Initializes a new class instance with a specified string to process and the specified token delimiters to use

Parameters:
source String to tokenize
delimiters String containing the delimiters
Tokenizer ( System.String  source,
System.String  delimiters,
bool  includeDelims 
)

Initializes a new class instance with a specified string to process, the specified token delimiters to use, and whether the delimiters must be included in the results.

Parameters:
source String to tokenize
delimiters String containing the delimiters
includeDelims Determines if delimiters are included in the results.

Member Function Documentation

bool HasMoreTokens (  ) 

Determines if there are more tokens to return from the source string

Returns:
True or false, depending if there are more tokens
bool MoveNext (  ) 

Performs the same action as HasMoreTokens.

Returns:
True or false, depending if there are more tokens
System.String NextToken ( System.String  delimiters  ) 

Returns the next token from the source string, using the provided token delimiters

Parameters:
delimiters String containing the delimiters to use
Returns:
The string value of the token
System.String NextToken (  ) 

Returns the next token from the token list

Returns:
The string value of the token
string RemainingString (  ) 

Returns the rest of the string from current position.

Returns:
rest of the string
void Reset (  ) 

Does nothing.


Property Documentation

int Count [get]

Remaining tokens count

System.Object Current [get]

Performs the same action as NextToken.