| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | UCharacterName.AlgorithmName
Algorithmic name class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | EXTENDED_CATEGORY_
Extended category count |
| private static final String | FILE_NAME_
Default name of the name datafile |
| private static final int | GROUP_MASK_
Mask to retrieve the offset for a particular character within a group |
| private static final int | GROUP_SHIFT_
Shift count to retrieve group information |
| public static final UCharacterName | |
| private static final int | LEAD_SURROGATE_
Lead surrogate type |
| public static final int | LINES_PER_GROUP_
Number of lines per group 1 << GROUP_SHIFT_ |
| private UCharacterName. | |
| public int | m_groupcount_
Maximum number of groups |
| private char[] | |
| private char[] | |
| private char[] | m_groupoffsets_
Group use. |
| pack-priv int | m_groupsize_
Size of each groups |
| private byte[] | |
| private int[] | m_ISOCommentSet_
Set of chars used in ISO comments. |
| private int | m_maxISOCommentLength_
Maximum ISO comment length |
| private int | m_maxNameLength_
Maximum name length |
| private int[] | m_nameSet_
Set of chars used in character names (regular & 1.0). |
| private byte[] | |
| private char[] | m_tokentable_
Data used in unames.icu |
| private int[] | m_utilIntBuffer_
Utility int buffer |
| private StringBuffer | m_utilStringBuffer_
Utility StringBuffer |
| private static final int | NON_CHARACTER_
Not a character type |
| private static final int | OFFSET_HIGH_OFFSET_
Position of offsethigh in group information array |
| private static final int | OFFSET_LOW_OFFSET_
Position of offsetlow in group information array |
| private static final int | SINGLE_NIBBLE_MAX_
Double nibble indicator, any nibble > this number has to be combined with its following nibble |
| private static final int | TRAIL_SURROGATE_
Trail surrogate type |
| private static final String[] | TYPE_NAMES_
Type names used for extended names |
| private static final String | UNKNOWN_TYPE_NAME_
Unknown type name |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static int | |
| private static int | add(int[]
set to add all chars of str to set, StringBuffer string to add str)Adds all characters of the argument str and gets the length Equivalent to calcStringSetLength. |
| private int | Returns: the maximum length of any possible algorithmic name if it is > maxlength, otherwise maxlength is returned.length to compare to maxlength)Adds all algorithmic names into the name set. |
| private int | Returns: the maxlength of any possible extended name.length to compare to maxlength)Adds all extended names into the name set. |
| private int[] | Returns: the length of the name string and the length of the group string parsedof the group name string in byte count offset, int of the group name string length, byte[] array to store the length of each token tokenlength, int[] to add to set)Adds names of a group to the argument set. |
| private void | |
| private static boolean | Returns: true if codepoint is part of the set, false otherwiseset to check in set, char 16 bit char to check ch)Checks if a codepoint is a part of a set of ints. |
| private void | convert(int[]
Set of 256 bit flags corresponding to a set of chars. set, UnicodeSet USet to receive characters. Existing contents are deleted. uset)Converts the char set cset into a Unicode set uset. |
| private String | Returns: the algorithmic name or null if not foundcharacter to determine name for ch, int name choice choice)Gets the algorithmic name for the argument character |
| public int | |
| public int | |
| public String | Returns: algorithmic name of codepointalgorithmic range index index, int The codepoint value. codepoint)Gets the Algorithmic name of the codepoint |
| public int | Returns: algorithm range startalgorithm index index)Gets the start of the range |
| public int | Returns: code pointselector to indicate if argument name is a Unicode 1.0
or the most current version choice, String the name to search for name)Find a character by its name and return its code point value |
| public void | getCharNameCharacters(UnicodeSet
USet to receive characters. Existing contents are deleted. set)Fills set with characters that are used in Unicode character names. |
| public static int | Returns: the MSB of the codepointThe codepoint value. codepoint)Gets the MSB of the codepoint |
| private static int | Returns: character associated with the name, -1 if such character is not found and -2 if we should continue with the search.of the character to be found name, int name choice choice)Getting the character with extended name of the form <....>. |
| public String | |
| public String | Returns: name of codepoint extended or 1.0codepoint ch)Gets the extended and 1.0 name when the most current unicode names fail |
| public int | Returns: group index containing codepoint or the group before it.The codepoint index. codepoint)Gets the group index for the codepoint, or the group before it. |
| private synchronized int | Returns: character with the tokenized argument name or -1 if character is not foundof the character name, int choice)Getting the character with the tokenized argument name |
| private int | Returns: relative character in the group which matches name, otherwise if not found, -1 will be returnedindex where the set of names reside in the group block index, char[] list of lengths of the strings length, String character name to search for name, int of either 1.0 or the most current unicode name choice)Compares and retrieve character if name is found within the argument group |
| public int | Returns: next index of the data string immediately after the lengths in terms of byte addressof group string object in array index, char[] array to store the value of the string offsets offsets, char[] array to store the value of the string length lengths)Reads a block of compressed lengths of 32 strings and expands them into offsets and lengths for each string. |
| public static int | Returns: limit codepoint of the groupmost significant byte of the group msb)Gets the maximum codepoint + 1 of the group |
| public static int | Returns: minimum codepoint of the groupmost significant byte of the group msb)Gets the minimum codepoint of the group |
| public static int | Returns: minimum codepoint in the group which codepoint belongs toThe codepoint value. codepoint)Gets the minimum codepoint of a group |
| public int | Returns: the MSB of the group if gindex is valid, -1 otherwisegroup index gindex)Gets the MSB from the group index |
| public String | Returns: name of the groupof the group name string in byte count index, int of the group name string length, int of Unicode 1.0 name or the most current name choice)Gets the name of the argument group index. |
| public synchronized String | getGroupName(int
character to get the group name ch, int name choice selector to choose a unicode 1.0 or newer name choice)Gets the group name of the character |
| public static int | Returns: offset to a groupThe codepoint value. codepoint)Gets the offset to a group |
| public void | getISOCommentCharacters(UnicodeSet
USet to receive characters. Existing contents are deleted. set)Fills set with characters that are used in Unicode character names. |
| public int | Returns: the maximum length of any codepoint nameGets the maximum length of any codepoint name. |
| public int | Returns: the maximum length of any codepoint nameGets the maximum length of any iso comments. |
| public String | Returns: if code point is above 0x1fff, null is returnedthe code point for which to get the name. ch, int Selector for which name to get. choice)Retrieve the name of a Unicode code point. |
| private static int | Returns: extended type it is associated withcharacter to be tested ch)Gets the character extended type |
| private boolean | |
| pack-priv boolean | Returns: true if the group string offset has been set correctlyAlgorithm information array algSet the algorithm name information array |
| pack-priv boolean | Returns: false if there is a data errorindex information array group, byte[] name information array groupstring)Sets the group name data |
| pack-priv boolean | Returns: true if group size is set correctlynumber of groups count, int size of group in char size)Sets the number of group and size of each group in number of char |
| pack-priv boolean | Returns: false if there is a data errorarray of tokens token, byte[] array of string values of the tokens tokenstring)Sets the token data |
| EXTENDED_CATEGORY_ | back to summary |
|---|---|
| pack-priv static final int EXTENDED_CATEGORY_ Extended category count | |
| FILE_NAME_ | back to summary |
|---|---|
| private static final String FILE_NAME_ Default name of the name datafile | |
| GROUP_MASK_ | back to summary |
|---|---|
| private static final int GROUP_MASK_ Mask to retrieve the offset for a particular character within a group | |
| GROUP_SHIFT_ | back to summary |
|---|---|
| private static final int GROUP_SHIFT_ Shift count to retrieve group information | |
| INSTANCE | back to summary |
|---|---|
| public static final UCharacterName INSTANCE | |
| LEAD_SURROGATE_ | back to summary |
|---|---|
| private static final int LEAD_SURROGATE_ Lead surrogate type | |
| LINES_PER_GROUP_ | back to summary |
|---|---|
| public static final int LINES_PER_GROUP_ Number of lines per group 1 << GROUP_SHIFT_ | |
| m_algorithm_ | back to summary |
|---|---|
| private UCharacterName. | |
| m_groupcount_ | back to summary |
|---|---|
| public int m_groupcount_ Maximum number of groups | |
| m_groupinfo_ | back to summary |
|---|---|
| private char[] m_groupinfo_ | |
| m_grouplengths_ | back to summary |
|---|---|
| private char[] m_grouplengths_ | |
| m_groupoffsets_ | back to summary |
|---|---|
| private char[] m_groupoffsets_ Group use. Note - access must be synchronized. | |
| m_groupsize_ | back to summary |
|---|---|
| pack-priv int m_groupsize_ Size of each groups | |
| m_groupstring_ | back to summary |
|---|---|
| private byte[] m_groupstring_ | |
| m_ISOCommentSet_ | back to summary |
|---|---|
| private int[] m_ISOCommentSet_ Set of chars used in ISO comments. (regular & 1.0). Chars are platform-dependent (can be EBCDIC). | |
| m_maxISOCommentLength_ | back to summary |
|---|---|
| private int m_maxISOCommentLength_ Maximum ISO comment length | |
| m_maxNameLength_ | back to summary |
|---|---|
| private int m_maxNameLength_ Maximum name length | |
| m_nameSet_ | back to summary |
|---|---|
| private int[] m_nameSet_ Set of chars used in character names (regular & 1.0). Chars are platform-dependent (can be EBCDIC). | |
| m_tokenstring_ | back to summary |
|---|---|
| private byte[] m_tokenstring_ | |
| m_tokentable_ | back to summary |
|---|---|
| private char[] m_tokentable_ Data used in unames.icu | |
| m_utilIntBuffer_ | back to summary |
|---|---|
| private int[] m_utilIntBuffer_ Utility int buffer | |
| m_utilStringBuffer_ | back to summary |
|---|---|
| private StringBuffer m_utilStringBuffer_ Utility StringBuffer | |
| NON_CHARACTER_ | back to summary |
|---|---|
| private static final int NON_CHARACTER_ Not a character type | |
| OFFSET_HIGH_OFFSET_ | back to summary |
|---|---|
| private static final int OFFSET_HIGH_OFFSET_ Position of offsethigh in group information array | |
| OFFSET_LOW_OFFSET_ | back to summary |
|---|---|
| private static final int OFFSET_LOW_OFFSET_ Position of offsetlow in group information array | |
| SINGLE_NIBBLE_MAX_ | back to summary |
|---|---|
| private static final int SINGLE_NIBBLE_MAX_ Double nibble indicator, any nibble > this number has to be combined with its following nibble | |
| TRAIL_SURROGATE_ | back to summary |
|---|---|
| private static final int TRAIL_SURROGATE_ Trail surrogate type | |
| TYPE_NAMES_ | back to summary |
|---|---|
| private static final String[] TYPE_NAMES_ Type names used for extended names | |
| UNKNOWN_TYPE_NAME_ | back to summary |
|---|---|
| private static final String UNKNOWN_TYPE_NAME_ Unknown type name | |
| UCharacterName | back to summary |
|---|---|
| private UCharacterName() throws IOException Protected constructor for use in UCharacter.
| |
| add | back to summary |
|---|---|
| private static void add(int[] set, char ch) Adds a codepoint into a set of ints. Equivalent to SET_ADD.
| |
| add | back to summary |
|---|---|
| private static int add(int[] set, String str) Adds all characters of the argument str and gets the length Equivalent to calcStringSetLength.
| |
| add | back to summary |
|---|---|
| private static int add(int[] set, StringBuffer str) Adds all characters of the argument str and gets the length Equivalent to calcStringSetLength.
| |
| addAlgorithmName | back to summary |
|---|---|
| private int addAlgorithmName(int maxlength) Adds all algorithmic names into the name set. Equivalent to part of calcAlgNameSetsLengths.
| |
| addExtendedName | back to summary |
|---|---|
| private int addExtendedName(int maxlength) Adds all extended names into the name set. Equivalent to part of calcExtNameSetsLengths.
| |
| addGroupName | back to summary |
|---|---|
| private int[] addGroupName(int offset, int length, byte[] tokenlength, int[] set) Adds names of a group to the argument set. Equivalent to calcNameSetLength.
| |
| addGroupName | back to summary |
|---|---|
| private void addGroupName(int maxlength) Adds names of all group to the argument set. Sets the data member m_max*Length_. Method called only once. Equivalent to calcGroupNameSetsLength.
| |
| contains | back to summary |
|---|---|
| private static boolean contains(int[] set, char ch) Checks if a codepoint is a part of a set of ints. Equivalent to SET_CONTAINS.
| |
| convert | back to summary |
|---|---|
| private void convert(int[] set, UnicodeSet uset) Converts the char set cset into a Unicode set uset. Equivalent to charSetToUSet.
| |
| getAlgName | back to summary |
|---|---|
| private String getAlgName(int ch, int choice) Gets the algorithmic name for the argument character
| |
| getAlgorithmEnd | back to summary |
|---|---|
| public int getAlgorithmEnd(int index) Gets the end of the range
| |
| getAlgorithmLength | back to summary |
|---|---|
| public int getAlgorithmLength() Get the Algorithm range length
| |
| getAlgorithmName | back to summary |
|---|---|
| public String getAlgorithmName(int index, int codepoint) Gets the Algorithmic name of the codepoint
| |
| getAlgorithmStart | back to summary |
|---|---|
| public int getAlgorithmStart(int index) Gets the start of the range
| |
| getCharFromName | back to summary |
|---|---|
| public int getCharFromName(int choice, String name) Find a character by its name and return its code point value
| |
| getCharNameCharacters | back to summary |
|---|---|
| public void getCharNameCharacters(UnicodeSet set) Fills set with characters that are used in Unicode character names. Equivalent to uprv_getCharNameCharacters.
| |
| getCodepointMSB | back to summary |
|---|---|
| public static int getCodepointMSB(int codepoint) Gets the MSB of the codepoint
| |
| getExtendedChar | back to summary |
|---|---|
| private static int getExtendedChar(String name, int choice) Getting the character with extended name of the form <....>.
| |
| getExtendedName | back to summary |
|---|---|
| public String getExtendedName(int ch) Retrieves the extended name | |
| getExtendedOr10Name | back to summary |
|---|---|
| public String getExtendedOr10Name(int ch) Gets the extended and 1.0 name when the most current unicode names fail
| |
| getGroup | back to summary |
|---|---|
| public int getGroup(int codepoint) Gets the group index for the codepoint, or the group before it.
| |
| getGroupChar | back to summary |
|---|---|
| private synchronized int getGroupChar(String name, int choice) Getting the character with the tokenized argument name
| |
| getGroupChar | back to summary |
|---|---|
| private int getGroupChar(int index, char[] length, String name, int choice) Compares and retrieve character if name is found within the argument group
| |
| getGroupLengths | back to summary |
|---|---|
| public 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. Lengths are stored with a variable-width encoding in consecutive nibbles: If a nibble<0xc, then it is the length itself (0 = empty string). If a nibble>=0xc, then it forms a length value with the following nibble. The offsets and lengths arrays must be at least 33 (one more) long because there is no check here at the end if the last nibble is still used.
| |
| getGroupLimit | back to summary |
|---|---|
| public static int getGroupLimit(int msb) Gets the maximum codepoint + 1 of the group
| |
| getGroupMin | back to summary |
|---|---|
| public static int getGroupMin(int msb) Gets the minimum codepoint of the group
| |
| getGroupMinFromCodepoint | back to summary |
|---|---|
| public static int getGroupMinFromCodepoint(int codepoint) Gets the minimum codepoint of a group
| |
| getGroupMSB | back to summary |
|---|---|
| public int getGroupMSB(int gindex) Gets the MSB from the group index
| |
| getGroupName | back to summary |
|---|---|
| public String getGroupName(int index, int length, int choice) Gets the name of the argument group index. UnicodeData.txt uses ';' as a field separator, so no field can contain ';' as part of its contents. In unames.icu, it is marked as token[';'] == -1 only if the semicolon is used in the data file - which is iff we have Unicode 1.0 names or ISO comments or aliases. So, it will be token[';'] == -1 if we store U1.0 names/ISO comments/aliases although we know that it will never be part of a name. Equivalent to ICU4C's expandName.
| |
| getGroupName | back to summary |
|---|---|
| public synchronized String getGroupName(int ch, int choice) Gets the group name of the character
| |
| getGroupOffset | back to summary |
|---|---|
| public static int getGroupOffset(int codepoint) Gets the offset to a group
| |
| getISOCommentCharacters | back to summary |
|---|---|
| public void getISOCommentCharacters(UnicodeSet set) Fills set with characters that are used in Unicode character names. Equivalent to uprv_getISOCommentCharacters.
| |
| getMaxCharNameLength | back to summary |
|---|---|
| public int getMaxCharNameLength() Gets the maximum length of any codepoint name. Equivalent to uprv_getMaxCharNameLength.
| |
| getMaxISOCommentLength | back to summary |
|---|---|
| public int getMaxISOCommentLength() Gets the maximum length of any iso comments. Equivalent to uprv_getMaxISOCommentLength.
| |
| getName | back to summary |
|---|---|
| public String getName(int ch, int choice) Retrieve the name of a Unicode code point.
Depending on
| |
| getType | back to summary |
|---|---|
| private static int getType(int ch) Gets the character extended type
| |
| initNameSetsLengths | back to summary |
|---|---|
| private boolean initNameSetsLengths() Sets up the name sets and the calculation of the maximum lengths. Equivalent to calcNameSetsLengths. | |
| setAlgorithm | back to summary |
|---|---|
| pack-priv boolean setAlgorithm(UCharacterName. Set the algorithm name information array
| |
| setGroup | back to summary |
|---|---|
| pack-priv boolean setGroup(char[] group, byte[] groupstring) Sets the group name data
| |
| setGroupCountSize | back to summary |
|---|---|
| pack-priv boolean setGroupCountSize(int count, int size) Sets the number of group and size of each group in number of char
| |
| setToken | back to summary |
|---|---|
| pack-priv boolean setToken(char[] token, byte[] tokenstring) Sets the token data
| |
| Modifier and Type | Field and Description |
|---|---|
| private char[] | |
| private byte[] | |
| private String | |
| private int | |
| private int | m_rangestart_
Algorithmic data information |
| private byte | |
| private int[] | m_utilIntBuffer_
Utility int buffer |
| private StringBuffer | m_utilStringBuffer_
Utility StringBuffer |
| private byte | |
| pack-priv static final int | TYPE_0_
Constant type value of the different AlgorithmName |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the length that is either maxlength of the length of this algorithm name if it is longer than maxlengthint set to add the chars of the algorithm names into set, int maximum length to compare to maxlength)Adds all chars in the set of algorithmic names into the set. |
| pack-priv void | appendName(int
code point ch, StringBuffer StringBuffer to append to str)Appends algorithm name of code point into StringBuffer. |
| private boolean | Returns: true if string matchesarray with each index corresponding to each factor block index, int index array length length, String string to compare with str, int of str to start comparison offset)Compares the indexth string in each of the argument factor block with the argument string |
| pack-priv boolean | |
| pack-priv int | |
| private String | Returns: the combined string of the array of indexth factor string in factor blockarray with each index corresponding to each factor block index, int length of the array index length)Gets the indexth string in each of the argument factor block |
| pack-priv boolean | |
| pack-priv boolean | Returns: true if values are setvariant factorized name data string)Sets the variant factorized name data |
| pack-priv boolean | Returns: true if values are validstarting code point that lies within this name group rangestart, int end code point that lies within this name group rangeend, byte algorithm type. There's 2 kinds of algorithmic type. First
which uses code point as part of its name and the other uses
variant postfix strings type, byte algorithmic variant variant)Sets the information for accessing the algorithmic names |
| pack-priv boolean |
| m_factor_ | back to summary |
|---|---|
| private char[] m_factor_ | |
| m_factorstring_ | back to summary |
|---|---|
| private byte[] m_factorstring_ | |
| m_prefix_ | back to summary |
|---|---|
| private String m_prefix_ | |
| m_rangeend_ | back to summary |
|---|---|
| private int m_rangeend_ | |
| m_rangestart_ | back to summary |
|---|---|
| private int m_rangestart_ Algorithmic data information | |
| m_type_ | back to summary |
|---|---|
| private byte m_type_ | |
| m_utilIntBuffer_ | back to summary |
|---|---|
| private int[] m_utilIntBuffer_ Utility int buffer | |
| m_utilStringBuffer_ | back to summary |
|---|---|
| private StringBuffer m_utilStringBuffer_ Utility StringBuffer | |
| m_variant_ | back to summary |
|---|---|
| private byte m_variant_ | |
| TYPE_0_ | back to summary |
|---|---|
| pack-priv static final int TYPE_0_ Constant type value of the different AlgorithmName | |
| TYPE_1_ | back to summary |
|---|---|
| pack-priv static final int TYPE_1_ | |
| AlgorithmName | back to summary |
|---|---|
| pack-priv AlgorithmName() Constructor | |
| add | back to summary |
|---|---|
| pack-priv int add(int[] set, int maxlength) Adds all chars in the set of algorithmic names into the set. Equivalent to part of calcAlgNameSetsLengths.
| |
| appendName | back to summary |
|---|---|
| pack-priv void appendName(int ch, StringBuffer str) Appends algorithm name of code point into StringBuffer. Note this method does not check for validity of code point in Algorithm, result is undefined if code point does not belong in Algorithm.
| |
| compareFactorString | back to summary |
|---|---|
| private boolean compareFactorString(int[] index, int length, String str, int offset) Compares the indexth string in each of the argument factor block with the argument string
| |
| contains | back to summary |
|---|---|
| pack-priv boolean contains(int ch) Checks if code point lies in Algorithm object at index
| |
| getChar | back to summary |
|---|---|
| pack-priv int getChar(String name) Gets the character for the argument algorithmic name
| |
| getFactorString | back to summary |
|---|---|
| private String getFactorString(int[] index, int length) Gets the indexth string in each of the argument factor block
| |
| setFactor | back to summary |
|---|---|
| pack-priv boolean setFactor(char[] factor) Sets the factor data
| |
| setFactorString | back to summary |
|---|---|
| pack-priv boolean setFactorString(byte[] string) Sets the variant factorized name data
| |
| setInfo | back to summary |
|---|---|
| pack-priv boolean setInfo(int rangestart, int rangeend, byte type, byte variant) Sets the information for accessing the algorithmic names
| |
| setPrefix | back to summary |
|---|---|
| pack-priv boolean setPrefix(String prefix) Sets the name prefix
| |