C# Class gnu.inet.encoding.misc.Tokenizer

The class performs token processing in strings
Inheritance: IEnumerator
Afficher le fichier Open project: pexip/os-libidn Class Usage Examples

Méthodes publiques

Méthode Description
HasMoreTokens ( ) : bool

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

MoveNext ( ) : bool

Performs the same action as HasMoreTokens.

NextToken ( ) : string

Returns the next token from the token list

NextToken ( string delimiters ) : string

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

Reset ( ) : void

Does nothing.

Tokenizer ( string source ) : System

Initializes a new class instance with a specified string to process

Tokenizer ( string source, string delimiters ) : System

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

Tokenizer ( string source, string delimiters, bool includeDelims ) : System

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.

Private Methods

Méthode Description
nextToken ( char delimiters ) : string

Method Details

HasMoreTokens() public méthode

Determines if there are more tokens to return from the source string
public HasMoreTokens ( ) : bool
Résultat bool

MoveNext() public méthode

Performs the same action as HasMoreTokens.
public MoveNext ( ) : bool
Résultat bool

NextToken() public méthode

Returns the next token from the token list
public NextToken ( ) : string
Résultat string

NextToken() public méthode

Returns the next token from the source string, using the provided token delimiters
public NextToken ( string delimiters ) : string
delimiters string String containing the delimiters to use
Résultat string

Reset() public méthode

Does nothing.
public Reset ( ) : void
Résultat void

Tokenizer() public méthode

Initializes a new class instance with a specified string to process
public Tokenizer ( string source ) : System
source string String to tokenize
Résultat System

Tokenizer() public méthode

Initializes a new class instance with a specified string to process and the specified token delimiters to use
public Tokenizer ( string source, string delimiters ) : System
source string String to tokenize
delimiters string String containing the delimiters
Résultat System

Tokenizer() public méthode

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.
public Tokenizer ( string source, string delimiters, bool includeDelims ) : System
source string String to tokenize
delimiters string String containing the delimiters
includeDelims bool Determines if delimiters are included in the results.
Résultat System