Partager via


AbstractStringBuilder.CodePointAt(Int32) Method

Definition

Returns the character (Unicode code point) at the specified index.

[Android.Runtime.Register("codePointAt", "(I)I", "GetCodePointAt_IHandler")]
public virtual int CodePointAt (int index);
[<Android.Runtime.Register("codePointAt", "(I)I", "GetCodePointAt_IHandler")>]
abstract member CodePointAt : int -> int
override this.CodePointAt : int -> int

Parameters

index
Int32

the index to the char values

Returns

the code point value of the character at the index

Attributes

Remarks

Returns the character (Unicode code point) at the specified index. The index refers to char values (Unicode code units) and ranges from 0 to #length()- 1.

If the char value specified at the given index is in the high-surrogate range, the following index is less than the length of this sequence, and the char value at the following index is in the low-surrogate range, then the supplementary code point corresponding to this surrogate pair is returned. Otherwise, the char value at the given index is returned.

Java documentation for java.lang.AbstractStringBuilder.codePointAt(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