ドキュメント

Unity Engine

Unity Engine

NativeText.Enumerator

An enumerator over the characters (not bytes) of a NativeText.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

public struct NativeText.Enumerator : IEnumerator<Unicode.Rune>, IEnumerator, IDisposable

Remarks

In an enumerator's initial state, its index is invalid. The first NativeText.Enumerator.MoveNext call advances the enumerator's index to the first character.

Constructors

Constructor

Description

Enumerator(Unity.Collections.NativeText)Initializes and returns an instance of NativeText.Enumerator.
Enumerator(Unity.Collections.NativeText.ReadOnly)Initializes and returns an instance of NativeText.Enumerator.

Properties

Property

Description

CurrentThe current character.

Methods

Method

Description

DisposeDoes nothing.
MoveNextAdvances the enumerator to the next character, returning true if NativeText.Enumerator.Current is valid to read afterwards.
ResetResets the enumerator to its initial state.