class Surrogate
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Surrogate.Generator
Surrogate generation support.
|
static class |
Surrogate.Parser
Surrogate parsing support.
|
Modifier and Type | Field and Description |
---|---|
static char |
MAX |
static char |
MAX_HIGH |
static char |
MAX_LOW |
static char |
MIN |
static char |
MIN_HIGH |
static char |
MIN_LOW |
static int |
UCS4_MAX |
static int |
UCS4_MIN |
Modifier | Constructor and Description |
---|---|
private |
Surrogate() |
Modifier and Type | Method and Description |
---|---|
static char |
high(int uc)
Returns the high UTF-16 surrogate for the given UCS-4 character.
|
static boolean |
is(int c)
Tells whether or not the given UTF-16 value is a surrogate character,
|
static boolean |
isHigh(int c)
Tells whether or not the given UTF-16 value is a high surrogate.
|
static boolean |
isLow(int c)
Tells whether or not the given UTF-16 value is a low surrogate.
|
static char |
low(int uc)
Returns the low UTF-16 surrogate for the given UCS-4 character.
|
static boolean |
neededFor(int uc)
Tells whether or not the given UCS-4 character must be represented as a
surrogate pair in UTF-16.
|
static int |
toUCS4(char c,
char d)
Converts the given surrogate pair into a 32-bit UCS-4 character.
|
public static final char MIN_HIGH
public static final char MAX_HIGH
public static final char MIN_LOW
public static final char MAX_LOW
public static final char MIN
public static final char MAX
public static final int UCS4_MIN
public static final int UCS4_MAX
public static boolean isHigh(int c)
public static boolean isLow(int c)
public static boolean is(int c)
public static boolean neededFor(int uc)
public static char high(int uc)
public static char low(int uc)
public static int toUCS4(char c, char d)