Struct StringExtensions.ReadOnlySpanTokensEnumerable
- Namespace
- Icy.Data
- Assembly
- IcyUI.dll
A ref struct that tokenizes a given ReadOnlySpan<T> instance with handling brackets as solid tokens.
public ref struct StringExtensions.ReadOnlySpanTokensEnumerable
- Inherited Members
Constructors
ReadOnlySpanTokensEnumerable(ReadOnlySpan<char>, char, BracketsPairDictionary)
Initializes a new instance of the StringExtensions.ReadOnlySpanTokensEnumerable struct.
public ReadOnlySpanTokensEnumerable(ReadOnlySpan<char> span, char separator, StringExtensions.BracketsPairDictionary bracketPairs)
Parameters
spanReadOnlySpan<char>The source ReadOnlySpan<T> instance.
separatorcharThe separator item to use.
bracketPairsStringExtensions.BracketsPairDictionaryList of bracket pairs to handle brackets as separate tokens.
Properties
Current
Gets the duck-typed Current property.
public readonly ReadOnlySpan<char> Current { get; }
Property Value
Methods
GetEnumerator()
Implements the duck-typed GetEnumerator() method.
public readonly StringExtensions.ReadOnlySpanTokensEnumerable GetEnumerator()
Returns
- StringExtensions.ReadOnlySpanTokensEnumerable
An StringExtensions.ReadOnlySpanTokensEnumerable instance targeting the current ReadOnlySpan<T> value.
MoveNext()
Implements the duck-typed MoveNext() method.
public bool MoveNext()