Partager via


Edits.Iterator.FindSourceIndex(Int32) Method

Definition

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

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

Parameters

i
Int32

source index

Returns

true if the edit for the source index was found

Attributes

Remarks

Moves the iterator to the edit that contains the source index. The source 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.findSourceIndex(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