codePointAt
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.
Return
the Unicode code point at the given index
Since
1.5
Parameters
a sequence of char values (Unicode code units)
the index to the char values (Unicode code units) in seq to be converted
Throws
if seq is null.
if the value index is negative or not less than seq.length().
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.
Return
the Unicode code point at the given index
Since
1.5
Parameters
the char array
the index to the char values (Unicode code units) in the char array to be converted
the index after the last array element that can be used in the char array
Throws
if a is null.
if the index argument is negative or not less than the limit argument, or if the limit argument is negative or greater than the length of the char array.