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

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

Public Methods

Method 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

Method Description
nextToken ( char delimiters ) : string

Method Details

HasMoreTokens() public method

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

MoveNext() public method

Performs the same action as HasMoreTokens.
public MoveNext ( ) : bool
return bool

NextToken() public method

Returns the next token from the token list
public NextToken ( ) : string
return string

NextToken() public method

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
return string

Reset() public method

Does nothing.
public Reset ( ) : void
return void

Tokenizer() public method

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

Tokenizer() public method

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
return System

Tokenizer() public method

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.
return System