net.sf.saxon.charcode
public class UTF16CharacterSet extends Object implements CharacterSet
Field Summary | |
---|---|
static int | NONBMP_MAX |
static int | NONBMP_MIN |
static char | SURROGATE1_MAX |
static char | SURROGATE1_MIN |
static char | SURROGATE2_MAX |
static char | SURROGATE2_MIN |
Method Summary | |
---|---|
static int | combinePair(char high, char low)
Return the non-BMP character corresponding to a given surrogate pair
surrogates. |
String | getCanonicalName() |
static UTF16CharacterSet | getInstance()
Get the singular instance of this class |
static char | highSurrogate(int ch)
Return the high surrogate of a non-BMP character |
boolean | inCharset(int c) |
static boolean | isHighSurrogate(int ch)
Test whether the given character is a high surrogate |
static boolean | isLowSurrogate(int ch)
Test whether the given character is a low surrogate |
static boolean | isSurrogate(int c)
Test whether a given character is a surrogate (high or low) |
static char | lowSurrogate(int ch)
Return the low surrogate of a non-BMP character |
Parameters: high The high surrogate. low The low surrogate.
Returns: the Unicode codepoint represented by the surrogate pair
Returns: the singular instance of this classthe singular instance of this class
Parameters: ch The Unicode codepoint of the non-BMP character to be divided.
Returns: the first character in the surrogate pair
Parameters: ch The character to test.
Returns: true if the character is the first character in a surrogate pair
Parameters: ch The character to test.
Returns: true if the character is the second character in a surrogate pair
Parameters: c the character to test
Returns: true if the character is the high or low half of a surrogate pair
Parameters: ch The Unicode codepoint of the non-BMP character to be divided.
Returns: the second character in the surrogate pair