Class StringTokenizer
A String Tokenizer that accepts Strings as source and delimiter. Only 1 delimiter is supported (either String or char[]).
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.dll
Syntax
public class StringTokenizer : IEnumerable<string>, IEnumerable, IEnumerator<string>, IDisposable, IEnumerator
Constructors
StringTokenizer(String, Char, StringSplitOptions)
Declaration
public StringTokenizer(string source, char delimiterChar, StringSplitOptions splitOptions = StringSplitOptions.RemoveEmptyEntries)
Parameters
System.String
source
|
System.Char
delimiterChar
|
System.StringSplitOptions
splitOptions
|
StringTokenizer(String, Char[], StringSplitOptions)
Declaration
public StringTokenizer(string source, char[] delimiterChars, StringSplitOptions splitOptions = StringSplitOptions.RemoveEmptyEntries)
Parameters
System.String
source
|
System.Char[]
delimiterChars
|
System.StringSplitOptions
splitOptions
|
StringTokenizer(String, String, StringSplitOptions)
Constructor for StringTokenizer Class.
Declaration
public StringTokenizer(string source, string delimiter, StringSplitOptions splitOptions = StringSplitOptions.RemoveEmptyEntries)
Parameters
System.String
source
The Source String. |
System.String
delimiter
The Delimiter String. If a 0 length delimiter is given, " " (space) is used by default. |
System.StringSplitOptions
splitOptions
Determines how to split the string. |
Properties
Current
Declaration
public string Current { get; }
Property Value
System.String
|
Implements
Methods
Count()
Method to get the number of tokens in this StringTokenizer.
Declaration
public int Count()
Returns
System.Int32
The number of Tokens in the internal ArrayList. |
Dispose()
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
GetEnumerator()
Declaration
public IEnumerator<string> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<System.String>
|
Implements
MoveNext()
Declaration
public bool MoveNext()
Returns
System.Boolean
|
Implements
NextToken()
Method to get the next (string)token of this StringTokenizer.
Declaration
public string NextToken()
Returns
System.String
A string representing the next token; null if no tokens or no more tokens. |
Reset()
Declaration
public void Reset()
Implements
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
System.Collections.IEnumerator
|
Implements
IEnumerator.Current
Declaration
object IEnumerator.Current { get; }
Returns
System.Object
|