다음을 통해 공유


SearchIterator.HandlePrevious(Int32) Method

Definition

Abstract method which subclasses override to provide the mechanism for finding the previous match in the target text.

[Android.Runtime.Register("handlePrevious", "(I)I", "GetHandlePrevious_IHandler", ApiSince=24)]
protected abstract int HandlePrevious (int startAt);
[<Android.Runtime.Register("handlePrevious", "(I)I", "GetHandlePrevious_IHandler", ApiSince=24)>]
abstract member HandlePrevious : int -> int

Parameters

startAt
Int32

The index in the target text at which the search should start.

Returns

index at which the match starts, else if match is not found #DONE is returned

Attributes

Remarks

Abstract method which subclasses override to provide the mechanism for finding the previous match in the target text. This allows different subclasses to provide different search algorithms.

If a match is found, the implementation should return the index at which the match starts and should call #setMatchLength with the number of characters in the target text that make up the match. If no match is found, the method should return #DONE.

Java documentation for android.icu.text.SearchIterator.handlePrevious(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