C# Class SupportClass.Tokenizer, csharp-ldap

The class performs token processing in strings
Inheritance: IEnumerator
Datei anzeigen Open project: EventStore/csharp-ldap Class Usage Examples

Public Methods

Method Description
HasMoreTokens ( ) : bool

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

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

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 retDel ) : System

Private Methods

Method Description
RemoveEmptyStrings ( ) : void

Removes all empty strings from the token list

Tokenize ( ) : void

Method Details

HasMoreTokens() public method

Determines if there are more tokens to return from the source string
public HasMoreTokens ( ) : 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

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

public Tokenizer ( string source, string delimiters, bool retDel ) : System
source string
delimiters string
retDel bool
return System