UnicodeSet.IndexOf(Int32) Method

Definition

Returns the index of the given character within this set, where the set is ordered by ascending code point.

[Android.Runtime.Register("indexOf", "(I)I", "GetIndexOf_IHandler", ApiSince=24)]
public virtual int IndexOf (int c);
[<Android.Runtime.Register("indexOf", "(I)I", "GetIndexOf_IHandler", ApiSince=24)>]
abstract member IndexOf : int -> int
override this.IndexOf : int -> int

Parameters

c
Int32

Returns

an index from 0..size()-1, or -1

Attributes

Remarks

Returns the index of the given character within this set, where the set is ordered by ascending code point. If the character is not in this set, return -1. The inverse of this method is charAt().

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