SpanRuneEnumerator Struct

Definition

Provides an enumerator for the Rune values represented by a span containing UTF-16 text.

public value class SpanRuneEnumerator
public ref struct SpanRuneEnumerator
type SpanRuneEnumerator = struct
Public Structure SpanRuneEnumerator
Inheritance
SpanRuneEnumerator

Remarks

This type is not intended to be referenced directly by application code. Instead, use the EnumerateRunes method along with language-specific enumeration constructs to enumerate Rune values within spans.

The foreach statement of the C# language (for each in C++, For Each in Visual Basic) hides the complexity of enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.

Properties

Current

Gets the Rune at the current position of the enumerator.

Methods

GetEnumerator()

Returns the current enumerator instance.

MoveNext()

Advances the enumerator to the next Rune of the span.

Applies to