Java Reference
In-Depth Information
characters written (either 1 or 2). If codePoint is not valid, Il-
legalArgumentException is thrown.
public static int toCodePoint(char high, char low)
Converts the given surrogate pair of char values to their sup-
plementary code point value. This method does not check that
high and low form a valid surrogate pair, so you must check
that yourself by using isSurrogatePair .
All of these methods that use indices can throw IndexOutOfBoundsExcep-
tion , if you cause them to try to index outside the given array, or
CharSequence , accounting for any imposed limits on the valid range of in-
dices.
 
Search WWH ::




Custom Search