Character.CodePointAt 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.
Overloads
| CodePointAt(ICharSequence, Int32) |
Returns the code point at the given index of the
|
| CodePointAt(Char[], Int32) |
Returns the code point at the given index of the
|
| CodePointAt(String, Int32) |
Returns the code point at the given index of the
|
| CodePointAt(Char[], Int32, Int32) |
Returns the code point at the given index of the
|
CodePointAt(ICharSequence, Int32)
Returns the code point at the given index of the
CharSequence.
[Android.Runtime.Register("codePointAt", "(Ljava/lang/CharSequence;I)I", "")]
public static int CodePointAt(Java.Lang.ICharSequence seq, int index);
[<Android.Runtime.Register("codePointAt", "(Ljava/lang/CharSequence;I)I", "")>]
static member CodePointAt : Java.Lang.ICharSequence * int -> int
Parameters
- seq
- ICharSequence
a sequence of char values (Unicode code
units)
- index
- Int32
the index to the char values (Unicode
code units) in seq to be converted
Returns
the Unicode code point at the given index
- Attributes
Exceptions
if seq is null.
if the index is negative or greater than or equal to
the length of seq.
Remarks
Returns the code point at the given index of the CharSequence. If the char value at the given index in the CharSequence is in the high-surrogate range, the following index is less than the length of the CharSequence, 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.Character.codePointAt(java.lang.CharSequence, 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
CodePointAt(Char[], Int32)
Returns the code point at the given index of the
char array.
[Android.Runtime.Register("codePointAt", "([CI)I", "")]
public static int CodePointAt(char[]? a, int index);
[<Android.Runtime.Register("codePointAt", "([CI)I", "")>]
static member CodePointAt : char[] * int -> int
Parameters
- a
- Char[]
the char array
- index
- Int32
the index to the char values (Unicode
code units) in the char array to be converted
Returns
the Unicode code point at the given index
- Attributes
Exceptions
if seq is null.
if the index is negative or greater than or equal to
the length of seq.
Remarks
Returns the code point at the given index of the char array. If the char value at the given index in the char array is in the high-surrogate range, the following index is less than the length of the char array, 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.Character.codePointAt(char[], 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
CodePointAt(String, Int32)
Returns the code point at the given index of the
CharSequence.
public static int CodePointAt(string seq, int index);
static member CodePointAt : string * int -> int
Parameters
- seq
- String
a sequence of char values (Unicode code
units)
- index
- Int32
the index to the char values (Unicode
code units) in seq to be converted
Returns
the Unicode code point at the given index
Remarks
Returns the code point at the given index of the CharSequence. If the char value at the given index in the CharSequence is in the high-surrogate range, the following index is less than the length of the CharSequence, 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.Character.codePointAt(java.lang.CharSequence, 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
CodePointAt(Char[], Int32, Int32)
Returns the code point at the given index of the
char array, where only array elements with
index less than limit can be used.
[Android.Runtime.Register("codePointAt", "([CII)I", "")]
public static int CodePointAt(char[]? a, int index, int limit);
[<Android.Runtime.Register("codePointAt", "([CII)I", "")>]
static member CodePointAt : char[] * int * int -> int
Parameters
- a
- Char[]
the char array
- index
- Int32
the index to the char values (Unicode
code units) in the char array to be converted
- limit
- Int32
the index after the last array element that
can be used in the char array
Returns
the Unicode code point at the given index
- Attributes
Exceptions
if seq is null.
if index , index >= limit,
limit or if limit is greater than the
length of seq.
Remarks
Returns the code point at the given index of the char array, where only array elements with index less than limit can be used. If the char value at the given index in the char array is in the high-surrogate range, the following index is less than the limit, 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.Character.codePointAt(char[], int, 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.