UCharacterIterator.MoveCodePointIndex(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
依照指定碼點數移動當前位置,根據 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 所創建與分享的作品,並依授權條款所描述的使用進行修改。