Table of Contents

Struct StringExtensions.ReadOnlySpanCodepointsEnumerable

Namespace
Icy.Data
Assembly
IcyUI.dll

Represents a struct that iterates over specified char span and provides Unicode codepoints for each character in it.

public ref struct StringExtensions.ReadOnlySpanCodepointsEnumerable
Inherited Members

Remarks

This class is not intended for use manually. Its common usage is inside foreach loops.

Constructors

ReadOnlySpanCodepointsEnumerable(ReadOnlySpan<char>)

Initializes a new instance of the StringExtensions.ReadOnlySpanCodepointsEnumerable struct.

public ReadOnlySpanCodepointsEnumerable(ReadOnlySpan<char> text)

Parameters

text ReadOnlySpan<char>

Characters readonly span to iterate over.

Properties

Current

Gets the current codepoint.

public readonly int Current { get; }

Property Value

int

Methods

GetEnumerator()

Gets an enumerator over the span.

public readonly StringExtensions.ReadOnlySpanCodepointsEnumerable GetEnumerator()

Returns

StringExtensions.ReadOnlySpanCodepointsEnumerable

This instance of the StringExtensions.ReadOnlySpanCodepointsEnumerable struct.

MoveNext()

Moves to the next codepoint.

public bool MoveNext()

Returns

bool

true if the next codepoint exists; otherwise false.

Reset()

Resets the enumerator position to zero.

public void Reset()