Skip to content

T_Ekstrand_Text_StringTokenizer

Fred Ekstrand edited this page Aug 6, 2020 · 1 revision

StringTokenizer Class

The String Tokenizer is the equivalent to Java version.

Inheritance Hierarchy

System.Object
  Ekstrand.Text.StringTokenizer
Namespace: Ekstrand.Text
Assembly: StringTokenizer (in StringTokenizer.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public sealed class StringTokenizer : IEnumerator, 
	IEnumerable

VB

Public NotInheritable Class StringTokenizer
	Implements IEnumerator, IEnumerable

C++

public ref class StringTokenizer sealed : IEnumerator, 
	IEnumerable

F#

[<SealedAttribute>]
type StringTokenizer =  
    class
        interface IEnumerator
        interface IEnumerable
    end

The StringTokenizer type exposes the following members.

Constructors

 

Name Description
Public method StringTokenizer() Constructor to initialize StringTokenizer
Public method StringTokenizer(String) Constructor to initialize StringTokenizer
Public method StringTokenizer(String, String) Constructor to initialize StringTokenizer
Public method StringTokenizer(String, String, Boolean) Constructor to initialize String Tokenizer with defined string delimiters and return delimiters
  Back to Top

Properties

 

Name Description
Public property Count Calculates the number of tokens that would be generated.
Public property Current Gets the current element in the collection (Inherited from IEnumerator.)
Public property Delimiters Replaces the current delimiters with the new given delimiters.
Public property HasMoreTokens Tests if there are more tokens available to be returned.
Public property IsReturnDelimiters If true, then the delimiter characters are also returned as tokens.
Public property StringSource Replaces the string to be tokenized and reset tokenizer to the beginning.
  Back to Top

Methods

 

Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that iterates through a collection (Inherited from IEnumerable).
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MoveNext Advances the enumerator to the next element of the collection.(Inherited from IEnumerator.)
Public method NextToken() Returns the next token from this string tokenizer.
Public method NextToken(String) Returns the next token from this string tokenizer with specified delimiter
Public method Reset Sets the enumerator to its initial position, which is before the first element in the collection.(Inherited from IEnumerator.)
Public method ResetTokenizer Sets the StringTokenizer to its starting position before tokenizing the given string.
Public method TokensToArray Return tokens based on current delimiters.
Public method TokensToList Return tokens based on current delimiters.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

See Also

Reference

Ekstrand.Text Namespace

Clone this wiki locally