AbstractStringBuilder.OffsetByCodePoints(Int32, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回這個序列中的索引,該索引會從程式代碼點指定的 index
codePointOffset
位移。
[Android.Runtime.Register("offsetByCodePoints", "(II)I", "GetOffsetByCodePoints_IIHandler")]
public virtual int OffsetByCodePoints(int index, int codePointOffset);
[<Android.Runtime.Register("offsetByCodePoints", "(II)I", "GetOffsetByCodePoints_IIHandler")>]
abstract member OffsetByCodePoints : int * int -> int
override this.OffsetByCodePoints : int * int -> int
參數
- index
- Int32
要位移的索引
- codePointOffset
- Int32
代碼點中的位移
傳回
此序列中的索引
- 屬性
備註
傳回這個序列中的索引,該索引會從程式代碼點指定的 index
codePointOffset
位移。 所 index
指定文字範圍內的未配對 Surrogate,並 codePointOffset
分別計算為一個字碼點。
的 java.lang.AbstractStringBuilder.offsetByCodePoints(int, int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。