Table of Contents

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

span ReadOnlySpan<char>

The source ReadOnlySpan<T> instance.

separator char

The separator item to use.

bracketPairs StringExtensions.BracketsPairDictionary

List 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

ReadOnlySpan<char>

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()

Returns

bool

true whether a new element is available, false otherwise.