String.CodePointAt(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the character (Unicode code point) at the specified index.
[Android.Runtime.Register("codePointAt", "(I)I", "")]
public int CodePointAt (int index);
[<Android.Runtime.Register("codePointAt", "(I)I", "")>]
member 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
Exceptions
if index = length()
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 String
, 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.
Added in 1.5.
Java documentation for java.lang.String.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
See also
- <xref:Java.Lang.Character.CodePointAt(System.Char%5b%5d%2c+System.Int32%2c+System.Int32)>