C# Class ZForge.Controls.ExplorerBar.StringTokenizer

A class that breaks a string into tokens
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Tokenize ( ) : void

Parses the source string

Method Details

CountTokens() public méthode

Returns the number of tokens in the string
public CountTokens ( ) : int
Résultat int

HasMoreTokens() public méthode

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

NextToken() public méthode

Returns the current token and moves to the next token
public NextToken ( ) : string
Résultat string

PeekToken() public méthode

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

SkipToken() public méthode

Moves to the next token without returning the current token
public SkipToken ( ) : void
Résultat void

StringTokenizer() public méthode

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
Résultat System

StringTokenizer() public méthode

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
Résultat System

StringTokenizer() public méthode

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
Résultat System