Język

UnicodeSet.CodePoints Method

Definition

Returns an Iterable for iteration over all the code points in this set.

[Android.Runtime.Register("codePoints", "()Ljava/lang/Iterable;", "GetCodePointsHandler", ApiSince=37)]
public virtual Java.Lang.IIterable? CodePoints();
[<Android.Runtime.Register("codePoints", "()Ljava/lang/Iterable;", "GetCodePointsHandler", ApiSince=37)>]
abstract member CodePoints : unit -> Java.Lang.IIterable
override this.CodePoints : unit -> Java.Lang.IIterable

Returns

an Iterable over all the code points

Attributes

Remarks

Returns an Iterable for iteration over all the code points in this set.

Warnings: This is a convenience method, but comes with a performance penalty because it boxes int into Integer. For an efficient but old alternative use UnicodeSetIterator.next(); To iterate over the full contents, you have to also iterate over the strings; For speed, UnicodeSet iteration does not check for concurrent modification. Do not alter the UnicodeSet while iterating.

Android reference for android.icu.text.UnicodeSet.codePoints.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to