Compartilhar via


SearchIterator.Next Method

Definition

Returns the index of the next point at which the text matches the search pattern, starting from the current position The iterator is adjusted so that its current index (as returned by #getIndex) is the match position if one was found.

[Android.Runtime.Register("next", "()I", "GetNextHandler", ApiSince=24)]
public virtual int Next ();
[<Android.Runtime.Register("next", "()I", "GetNextHandler", ApiSince=24)>]
abstract member Next : unit -> int
override this.Next : unit -> int

Returns

The index of the next match after the current position, or #DONE if there are no more matches.

Attributes

Remarks

Returns the index of the next point at which the text matches the search pattern, starting from the current position The iterator is adjusted so that its current index (as returned by #getIndex) is the match position if one was found. If a match is not found, #DONE will be returned and the iterator will be adjusted to a position after the end of the text string.

Java documentation for android.icu.text.SearchIterator.next().

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