C# Class ZForge.Controls.ExplorerBar.StringTokenizer

A class that breaks a string into tokens
Datei anzeigen Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
CountTokens ( ) : int

Returns the number of tokens in the string

HasMoreTokens ( ) : bool

Checks if there are more tokens available from this tokenizer's string

NextToken ( ) : string

Returns the current token and moves to the next token

PeekToken ( ) : string

Returns the current token but does not move to the next token

SkipToken ( ) : void

Moves to the next token without returning the current token

StringTokenizer ( string source ) : System

Initializes a new instance of the StringTokenizer class with the specified source string

StringTokenizer ( string source, char delimiter ) : System

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters

StringTokenizer ( string source, string delimiter ) : System

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters

Private Methods

Method Description
Tokenize ( ) : void

Parses the source string

Method Details

CountTokens() public method

Returns the number of tokens in the string
public CountTokens ( ) : int
return int

HasMoreTokens() public method

Checks if there are more tokens available from this tokenizer's string
public HasMoreTokens ( ) : bool
return bool

NextToken() public method

Returns the current token and moves to the next token
public NextToken ( ) : string
return string

PeekToken() public method

Returns the current token but does not move to the next token
public PeekToken ( ) : string
return string

SkipToken() public method

Moves to the next token without returning the current token
public SkipToken ( ) : void
return void

StringTokenizer() public method

Initializes a new instance of the StringTokenizer class with the specified source string
public StringTokenizer ( string source ) : System
source string The String to be parsed
return System

StringTokenizer() public method

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters
public StringTokenizer ( string source, char delimiter ) : System
source string The String to be parsed
delimiter char A char array containing the delimiters
return System

StringTokenizer() public method

Initializes a new instance of the StringTokenizer class with the specified source string and delimiters
public StringTokenizer ( string source, string delimiter ) : System
source string The String to be parsed
delimiter string A String containing the delimiters
return System