Freigeben über


UCharacterIterator.MoveCodePointIndex(Int32) Method

Definition

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

[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

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 points specified, either forward or backward depending on the sign of delta (positive or negative respectively). If the current index is at a trail surrogate then the first adjustment is by code unit, and the remaining adjustments are by code points. 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.moveCodePointIndex(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