語言

UnicodeSet.CharAt(Int32) 方法

定義

回傳該集合中給定索引的字元,該集合依遞增碼點排序。

[Android.Runtime.Register("charAt", "(I)I", "GetCharAt_IHandler", ApiSince=24)]
public virtual int CharAt(int index);
[<Android.Runtime.Register("charAt", "(I)I", "GetCharAt_IHandler", ApiSince=24)>]
abstract member CharAt : int -> int
override this.CharAt : int -> int

參數

index
Int32

從 0..size()-1 的索引

傳回

以給定索引的字元,或 -1。

屬性

備註

回傳該集合中給定索引的字元,該集合依遞增碼點排序。 若索引超出範圍,回傳 -1。 此方法的反函數為 indexOf()。

Java 文件 android.icu.text.UnicodeSet.charAt(int)。

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

適用於