Share via


Edits.Iterator.FindDestinationIndex(Int32) Method

Definition

Moves the iterator to the edit that contains the destination index.

[Android.Runtime.Register("findDestinationIndex", "(I)Z", "", ApiSince=29)]
public bool FindDestinationIndex (int i);
[<Android.Runtime.Register("findDestinationIndex", "(I)Z", "", ApiSince=29)>]
member this.FindDestinationIndex : int -> bool

Parameters

i
Int32

destination index

Returns

true if the edit for the destination index was found

Attributes

Remarks

Moves the iterator to the edit that contains the destination index. The destination index may be found in a no-change edit even if normal iteration would skip no-change edits. Normal iteration can continue from a found edit.

The iterator state before this search logically does not matter. (It may affect the performance of the search.)

The iterator state after this search is undefined if the source index is out of bounds for the source string.

Java documentation for android.icu.text.Edits.Iterator.findDestinationIndex(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