Share via


UnicodeSet.CharAt(Int32) Method

Definition

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

[Android.Runtime.Register("charAt", "(I)I", "GetCharAt_IHandler", ApiSince=24)]
public virtual int CharAt (int index);
[<Android.Runtime.Register("charAt", "(I)I", "GetCharAt_IHandler", ApiSince=24)>]
abstract member CharAt : int -> int
override this.CharAt : int -> int

Parameters

index
Int32

an index from 0..size()-1

Returns

the character at the given index, or -1.

Attributes

Remarks

Returns the character at the given index within this set, where the set is ordered by ascending code point. If the index is out of range, return -1. The inverse of this method is indexOf().

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