public final class UCharacterName extends Object
| Modifier and Type | Field and Description |
|---|---|
static UCharacterName |
INSTANCE |
static int |
LINES_PER_GROUP_
Number of lines per group
1 << GROUP_SHIFT_
|
int |
m_groupcount_
Maximum number of groups
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAlgorithmEnd(int index)
Gets the end of the range
|
int |
getAlgorithmLength()
Get the Algorithm range length
|
String |
getAlgorithmName(int index,
int codepoint)
Gets the Algorithmic name of the codepoint
|
int |
getAlgorithmStart(int index)
Gets the start of the range
|
int |
getCharFromName(int choice,
String name)
Find a character by its name and return its code point value
|
void |
getCharNameCharacters(UnicodeSet set)
Fills set with characters that are used in Unicode character names.
|
static int |
getCodepointMSB(int codepoint)
Gets the MSB of the codepoint
|
String |
getExtendedName(int ch)
Retrieves the extended name
|
String |
getExtendedOr10Name(int ch)
Gets the extended and 1.0 name when the most current unicode names
fail
|
int |
getGroup(int codepoint)
Gets the group index for the codepoint, or the group before it.
|
int |
getGroupLengths(int index,
char[] offsets,
char[] lengths)
Reads a block of compressed lengths of 32 strings and expands them into
offsets and lengths for each string.
|
static int |
getGroupLimit(int msb)
Gets the maximum codepoint + 1 of the group
|
static int |
getGroupMin(int msb)
Gets the minimum codepoint of the group
|
static int |
getGroupMinFromCodepoint(int codepoint)
Gets the minimum codepoint of a group
|
int |
getGroupMSB(int gindex)
Gets the MSB from the group index
|
String |
getGroupName(int ch,
int choice)
Gets the group name of the character
|
String |
getGroupName(int index,
int length,
int choice)
Gets the name of the argument group index.
|
static int |
getGroupOffset(int codepoint)
Gets the offset to a group
|
void |
getISOCommentCharacters(UnicodeSet set)
Fills set with characters that are used in Unicode character names.
|
int |
getMaxCharNameLength()
Gets the maximum length of any codepoint name.
|
int |
getMaxISOCommentLength()
Gets the maximum length of any iso comments.
|
String |
getName(int ch,
int choice)
Retrieve the name of a Unicode code point.
|
public static final UCharacterName INSTANCE
public static final int LINES_PER_GROUP_
public int m_groupcount_
public String getName(int ch, int choice)
choice, the character name written into the
buffer is the "modern" name or the name that was defined in Unicode
version 1.0.
The name contains only "invariant" characters
like A-Z, 0-9, space, and '-'.ch - the code point for which to get the name.choice - Selector for which name to get.public int getCharFromName(int choice,
String name)
choice - selector to indicate if argument name is a Unicode 1.0
or the most current versionname - the name to search forpublic int getGroupLengths(int index,
char[] offsets,
char[] lengths)
index - of group string object in arrayoffsets - array to store the value of the string offsetslengths - array to store the value of the string lengthpublic String getGroupName(int index, int length, int choice)
index - of the group name string in byte countlength - of the group name stringchoice - of Unicode 1.0 name or the most current namepublic String getExtendedName(int ch)
public int getGroup(int codepoint)
codepoint - The codepoint index.public String getExtendedOr10Name(int ch)
ch - codepointpublic int getGroupMSB(int gindex)
gindex - group indexpublic static int getCodepointMSB(int codepoint)
codepoint - The codepoint value.public static int getGroupLimit(int msb)
msb - most significant byte of the grouppublic static int getGroupMin(int msb)
msb - most significant byte of the grouppublic static int getGroupOffset(int codepoint)
codepoint - The codepoint value.public static int getGroupMinFromCodepoint(int codepoint)
codepoint - The codepoint value.public int getAlgorithmLength()
public int getAlgorithmStart(int index)
index - algorithm indexpublic int getAlgorithmEnd(int index)
index - algorithm indexpublic String getAlgorithmName(int index, int codepoint)
index - algorithmic range indexcodepoint - The codepoint value.public String getGroupName(int ch, int choice)
ch - character to get the group namechoice - name choice selector to choose a unicode 1.0 or newer namepublic int getMaxCharNameLength()
public int getMaxISOCommentLength()
public void getCharNameCharacters(UnicodeSet set)
set - USet to receive characters. Existing contents are deleted.public void getISOCommentCharacters(UnicodeSet set)
set - USet to receive characters. Existing contents are deleted.