語言

UnicodeSet.CodePoints 方法

定義

回傳 for 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 an 對所有代碼點

屬性

備註

回傳一個迭代可迭代物,涵蓋此集合中所有代碼點。

警告:這是一種方便方法,但會因為智力被限制成整數而帶來效能懲罰。 若想有效率但較舊的替代方案,請使用 UnicodeSetIterator.next();要遍歷完整內容,你也必須遍歷字串;為了速度,UnicodeSet 迭代不會檢查是否同時修改。 在迭代時不要更改 UnicodeSet。

Android 參考資料。android.icu.text.UnicodeSet.codePoints

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於