语言

UnicodeSet.CodePoints 方法

定义

返回 Iterable 对此集中所有代码点的迭代。

[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

返回

一个 Iterable 覆盖所有代码点

特性

注解

返回循环访问此集中所有代码点的迭代。

警告:这是一种方便的方法,但附带性能损失,因为它将输入整数。 对于高效但旧的替代方法,请使用 UnicodeSetIterator.next():若要循环访问完整内容,还必须循环访问字符串;对于速度,UnicodeSet 迭代不会检查并发修改。 在迭代时不要更改 UnicodeSet。

Android 参考。android.icu.text.UnicodeSet.codePoints

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于