다음을 통해 공유


SearchIterator.MatchStart Property

Definition

Returns the index to the match in the text string that was searched.

public virtual int MatchStart { [Android.Runtime.Register("getMatchStart", "()I", "GetGetMatchStartHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("getMatchStart", "()I", "GetGetMatchStartHandler", ApiSince=24)>]
member this.MatchStart : int

Property Value

index of a substring within the text string that is being searched.

Attributes

Remarks

Returns the index to the match in the text string that was searched. This call returns a valid result only after a successful call to #first, #next, #previous, or #last. Just after construction, or after a searching method returns #DONE, this method will return #DONE.

Use #getMatchLength to get the matched string length.

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

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