語言

UCharacterIterator.MoveCodePointIndex(Int32) 方法

定義

依照指定碼點數移動當前位置,根據 delta 的符號(正負號)向前或向後移動。

[Android.Runtime.Register("moveCodePointIndex", "(I)I", "GetMoveCodePointIndex_IHandler", ApiSince=24)]
public virtual int MoveCodePointIndex(int delta);
[<Android.Runtime.Register("moveCodePointIndex", "(I)I", "GetMoveCodePointIndex_IHandler", ApiSince=24)>]
abstract member MoveCodePointIndex : int -> int
override this.MoveCodePointIndex : int -> int

參數

delta
Int32

移動當前索引所需的代碼單位數。

傳回

新指數

屬性

備註

依照指定碼點數移動當前位置,根據 delta 的符號(正負號)向前或向後移動。 若目前索引位於追蹤替代者,則第一次調整依代碼單位進行,後續調整則依代碼點進行。 若所得索引小於零,則索引設為零;若索引大於極限,則索引設為極限。

Java 文件 android.icu.text.UCharacterIterator.moveCodePointIndex(int)。

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

適用於