Share via


UCharacterIterator.MoveIndex(Int32) Method

Definition

Moves the current position by the number of code units specified, either forward or backward depending on the sign of delta (positive or negative respectively).

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

Parameters

delta
Int32

the number of code units to move the current index.

Returns

the new index.

Attributes

Remarks

Moves the current position by the number of code units specified, either forward or backward depending on the sign of delta (positive or negative respectively). If the resulting index would be less than zero, the index is set to zero, and if the resulting index would be greater than limit, the index is set to limit.

Java documentation for android.icu.text.UCharacterIterator.moveIndex(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to