Internal class used for Unicode character property database.
This classes store binary data read from uprops.icu. It does not have the capability to parse the data into more high-level information. It only returns bytes of information when required.
Due to the form most commonly used for retrieval, array of char is used to store the binary data.
UCharacterPropertyDB also contains information on accessing indexes to significant points in the binary data.
Responsibility for molding the binary data into more meaning form lies on UCharacter.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | |
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | AGE_SHIFT_
Age value shift |
| private static final int | |
| private static final int | |
| public static final int | BIDI_PAIRED_BRACKET_TYPE
Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3). |
| private static final int | BLOCK_MASK_
Integer properties mask and shift values for blocks. |
| private static final int | BLOCK_SHIFT_
Integer properties mask and shift values for blocks. |
| private static final int | |
| private static final String | DATA_FILE_NAME_
Default name of the datafile |
| private static final int | |
| private static final int | DECOMPOSITION_TYPE_MASK_
Integer properties mask for decomposition type. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | EAST_ASIAN_MASK_
Integer properties mask and shift values for East Asian cell width. |
| private static final int | EAST_ASIAN_SHIFT_
Integer properties mask and shift values for East Asian cell width. |
| private static final int | |
| private static final int | FIRST_NIBBLE_SHIFT_
First nibble shift |
| private static final int | |
| private static final int | |
| private static final int[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final UCharacterProperty | |
| private UCharacterProperty. | |
| private static final int | LAST_NIBBLE_MASK_
Second nibble mask |
| private static final int | |
| private static final int | |
| private static final int | LEAD_SURROGATE_SHIFT_
Shift value for lead surrogate to form a supplementary character. |
| private static final int | |
| pack-priv int | m_additionalColumnsCount_
Number of additional columns |
| pack-priv Trie2_16 | m_additionalTrie_
Extra property trie |
| pack-priv int[] | m_additionalVectors_
Extra property vectors, 1st column for age and second for binary properties. |
| pack-priv CodePointTrie | |
| pack-priv int | m_maxBlockScriptValue_
Maximum values for block, bits used as in vector word 0 |
| pack-priv int | m_maxJTGValue_
Maximum values for script, bits used as in vector word 0 |
| pack-priv int | m_maxValuesOther_
maximum values for other code values |
| public char[] | m_scriptExtensions_
Script_Extensions data |
| public Trie2_16 | m_trie_
Trie data |
| public VersionInfo | m_unicodeVersion_
Unicode version |
| private static final int | |
| public static final int | |
| private static final int | |
| private static final int | NTV_DECIMAL_START_
Decimal digits: nv=0..9 |
| private static final int | NTV_DIGIT_START_
Other digits: nv=0..9 |
| private static final int | NTV_NONE_
No numeric value. |
| private static final int | NTV_NUMERIC_START_
Small integers: nv=0..154 |
| private static final int | NUMERIC_TYPE_VALUE_SHIFT_
Numeric types and values in the main properties words. |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final int | |
| public static final int | |
| public static final int | SCRIPT_LOW_MASK
Integer properties mask and shift values for scripts. |
| public static final int | SCRIPT_X_MASK
Script_Extensions: mask includes Script |
| public static final int | SRC_BIDI
From ubidi_props.c/ubidi.icu |
| public static final int | SRC_CHAR
From uchar.c/uprops.icu main trie |
| public static final int | SRC_NFC
From normalizer2impl.cpp/nfc.nrm |
| public static final int | SRC_NFKC
From normalizer2impl.cpp/nfkc.nrm |
| public static final int | SRC_PROPSVEC
From uchar.c/uprops.icu properties vectors trie |
| private static final int | SURROGATE_OFFSET_
Offset to add to combined surrogate pair to avoid masking. |
| private static final int | |
| public static final int | TYPE_MASK
Character type mask |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | WHITE_SPACE_PROPERTY_
Additional properties used in internal trie data |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public int | Returns: unicode propertiescodepoint whose additional properties is to be
retrieved codepoint, int The column index. column)Gets the unicode additional properties. |
| public VersionInfo | Returns: the Unicode version numberThe code point. codepoint)Get the "age" of the code point. |
| public static int | Returns: -1 if ch is not a character of the form 'A' - 'Z', otherwise its corresponding digit will be returned.character to test ch)Returns the digit values of characters like 'A' - 'Z', normal, half-width and full-width. |
| public int | |
| public static final int | |
| private static final int | |
| public final int | Returns: property value of code pointcode point whose property value is to be retrieved ch)Gets the main property value for code point ch. |
| public static int | Returns: code point of the supplementary characterlead surrogate character lead, char trailing surrogate character trail)Forms a supplementary code point from the argument character Note this is for internal use hence no checks for the validity of the surrogate characters are done |
| public int | |
| public static final int | |
| private static final int | |
| public void |
| AGE_SHIFT_ | back to summary |
|---|---|
| private static final int AGE_SHIFT_ Age value shift | |
| ALPHABETIC_PROPERTY_ | back to summary |
|---|---|
| private static final int ALPHABETIC_PROPERTY_ | |
| ASCII_HEX_DIGIT_PROPERTY_ | back to summary |
|---|---|
| private static final int ASCII_HEX_DIGIT_PROPERTY_ | |
| BIDI_PAIRED_BRACKET_TYPE | back to summary |
|---|---|
| public static final int BIDI_PAIRED_BRACKET_TYPE Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3). Used in UAX #9: Unicode Bidirectional Algorithm (http://www.unicode.org/reports/tr9/) Returns UCharacter.BidiPairedBracketType values.
| |
| BLOCK_MASK_ | back to summary |
|---|---|
| private static final int BLOCK_MASK_ Integer properties mask and shift values for blocks. Equivalent to icu4c UPROPS_BLOCK_MASK | |
| BLOCK_SHIFT_ | back to summary |
|---|---|
| private static final int BLOCK_SHIFT_ Integer properties mask and shift values for blocks. Equivalent to icu4c UPROPS_BLOCK_SHIFT | |
| DASH_PROPERTY_ | back to summary |
|---|---|
| private static final int DASH_PROPERTY_ | |
| DATA_FILE_NAME_ | back to summary |
|---|---|
| private static final String DATA_FILE_NAME_ Default name of the datafile
| |
| DATA_FORMAT | back to summary |
|---|---|
| private static final int DATA_FORMAT | |
| DECOMPOSITION_TYPE_MASK_ | back to summary |
|---|---|
| private static final int DECOMPOSITION_TYPE_MASK_ Integer properties mask for decomposition type. Equivalent to icu4c UPROPS_DT_MASK. | |
| DEFAULT_IGNORABLE_CODE_POINT_PROPERTY_ | back to summary |
|---|---|
| private static final int DEFAULT_IGNORABLE_CODE_POINT_PROPERTY_ | |
| DEPRECATED_PROPERTY_ | back to summary |
|---|---|
| private static final int DEPRECATED_PROPERTY_ | |
| DIACRITIC_PROPERTY_ | back to summary |
|---|---|
| private static final int DIACRITIC_PROPERTY_ | |
| EAST_ASIAN_MASK_ | back to summary |
|---|---|
| private static final int EAST_ASIAN_MASK_ Integer properties mask and shift values for East Asian cell width. Equivalent to icu4c UPROPS_EA_MASK | |
| EAST_ASIAN_SHIFT_ | back to summary |
|---|---|
| private static final int EAST_ASIAN_SHIFT_ Integer properties mask and shift values for East Asian cell width. Equivalent to icu4c UPROPS_EA_SHIFT | |
| EXTENDER_PROPERTY_ | back to summary |
|---|---|
| private static final int EXTENDER_PROPERTY_ | |
| FIRST_NIBBLE_SHIFT_ | back to summary |
|---|---|
| private static final int FIRST_NIBBLE_SHIFT_ First nibble shift | |
| GCB_MASK | back to summary |
|---|---|
| private static final int GCB_MASK | |
| GCB_SHIFT | back to summary |
|---|---|
| private static final int GCB_SHIFT | |
| gcbToHst | back to summary |
|---|---|
| private static final int[] gcbToHst | |
| GRAPHEME_BASE_PROPERTY_ | back to summary |
|---|---|
| private static final int GRAPHEME_BASE_PROPERTY_ | |
| GRAPHEME_EXTEND_PROPERTY_ | back to summary |
|---|---|
| private static final int GRAPHEME_EXTEND_PROPERTY_ | |
| GRAPHEME_LINK_PROPERTY_ | back to summary |
|---|---|
| private static final int GRAPHEME_LINK_PROPERTY_ | |
| HEX_DIGIT_PROPERTY_ | back to summary |
|---|---|
| private static final int HEX_DIGIT_PROPERTY_ | |
| HYPHEN_PROPERTY_ | back to summary |
|---|---|
| private static final int HYPHEN_PROPERTY_ | |
| ID_CONTINUE_PROPERTY_ | back to summary |
|---|---|
| private static final int ID_CONTINUE_PROPERTY_ | |
| ID_START_PROPERTY_ | back to summary |
|---|---|
| private static final int ID_START_PROPERTY_ | |
| IDEOGRAPHIC_PROPERTY_ | back to summary |
|---|---|
| private static final int IDEOGRAPHIC_PROPERTY_ | |
| IDS_BINARY_OPERATOR_PROPERTY_ | back to summary |
|---|---|
| private static final int IDS_BINARY_OPERATOR_PROPERTY_ | |
| IDS_TRINARY_OPERATOR_PROPERTY_ | back to summary |
|---|---|
| private static final int IDS_TRINARY_OPERATOR_PROPERTY_ | |
| INSTANCE | back to summary |
|---|---|
| public static final UCharacterProperty INSTANCE | |
| intProp | back to summary |
|---|---|
| private UCharacterProperty. | |
| LAST_NIBBLE_MASK_ | back to summary |
|---|---|
| private static final int LAST_NIBBLE_MASK_ Second nibble mask | |
| LB_MASK | back to summary |
|---|---|
| private static final int LB_MASK | |
| LB_SHIFT | back to summary |
|---|---|
| private static final int LB_SHIFT | |
| LEAD_SURROGATE_SHIFT_ | back to summary |
|---|---|
| private static final int LEAD_SURROGATE_SHIFT_ Shift value for lead surrogate to form a supplementary character. | |
| LOGICAL_ORDER_EXCEPTION_PROPERTY_ | back to summary |
|---|---|
| private static final int LOGICAL_ORDER_EXCEPTION_PROPERTY_ | |
| m_additionalColumnsCount_ | back to summary |
|---|---|
| pack-priv int m_additionalColumnsCount_ Number of additional columns | |
| m_additionalTrie_ | back to summary |
|---|---|
| pack-priv Trie2_16 m_additionalTrie_ Extra property trie | |
| m_additionalVectors_ | back to summary |
|---|---|
| pack-priv int[] m_additionalVectors_ Extra property vectors, 1st column for age and second for binary properties. | |
| m_blockTrie_ | back to summary |
|---|---|
| pack-priv CodePointTrie m_blockTrie_ | |
| m_maxBlockScriptValue_ | back to summary |
|---|---|
| pack-priv int m_maxBlockScriptValue_ Maximum values for block, bits used as in vector word 0 | |
| m_maxJTGValue_ | back to summary |
|---|---|
| pack-priv int m_maxJTGValue_ Maximum values for script, bits used as in vector word 0 | |
| m_maxValuesOther_ | back to summary |
|---|---|
| pack-priv int m_maxValuesOther_ maximum values for other code values | |
| m_scriptExtensions_ | back to summary |
|---|---|
| public char[] m_scriptExtensions_ Script_Extensions data | |
| m_trie_ | back to summary |
|---|---|
| public Trie2_16 m_trie_ Trie data | |
| m_unicodeVersion_ | back to summary |
|---|---|
| public VersionInfo m_unicodeVersion_ Unicode version | |
| MATH_PROPERTY_ | back to summary |
|---|---|
| private static final int MATH_PROPERTY_ | |
| MAX_SCRIPT | back to summary |
|---|---|
| public static final int MAX_SCRIPT | |
| NONCHARACTER_CODE_POINT_PROPERTY_ | back to summary |
|---|---|
| private static final int NONCHARACTER_CODE_POINT_PROPERTY_ | |
| NTV_DECIMAL_START_ | back to summary |
|---|---|
| private static final int NTV_DECIMAL_START_ Decimal digits: nv=0..9 | |
| NTV_DIGIT_START_ | back to summary |
|---|---|
| private static final int NTV_DIGIT_START_ Other digits: nv=0..9 | |
| NTV_NONE_ | back to summary |
|---|---|
| private static final int NTV_NONE_ No numeric value. | |
| NTV_NUMERIC_START_ | back to summary |
|---|---|
| private static final int NTV_NUMERIC_START_ Small integers: nv=0..154 | |
| NUMERIC_TYPE_VALUE_SHIFT_ | back to summary |
|---|---|
| private static final int NUMERIC_TYPE_VALUE_SHIFT_ Numeric types and values in the main properties words. | |
| PATTERN_SYNTAX | back to summary |
|---|---|
| private static final int PATTERN_SYNTAX | |
| PATTERN_WHITE_SPACE | back to summary |
|---|---|
| private static final int PATTERN_WHITE_SPACE | |
| QUOTATION_MARK_PROPERTY_ | back to summary |
|---|---|
| private static final int QUOTATION_MARK_PROPERTY_ | |
| RADICAL_PROPERTY_ | back to summary |
|---|---|
| private static final int RADICAL_PROPERTY_ | |
| S_TERM_PROPERTY_ | back to summary |
|---|---|
| private static final int S_TERM_PROPERTY_ | |
| SB_MASK | back to summary |
|---|---|
| private static final int SB_MASK | |
| SB_SHIFT | back to summary |
|---|---|
| private static final int SB_SHIFT | |
| SCRIPT_HIGH_MASK | back to summary |
|---|---|
| public static final int SCRIPT_HIGH_MASK | |
| SCRIPT_HIGH_SHIFT | back to summary |
|---|---|
| public static final int SCRIPT_HIGH_SHIFT | |
| SCRIPT_LOW_MASK | back to summary |
|---|---|
| public static final int SCRIPT_LOW_MASK Integer properties mask and shift values for scripts. Equivalent to icu4c UPROPS_SHIFT_LOW_MASK. | |
| SCRIPT_X_MASK | back to summary |
|---|---|
| public static final int SCRIPT_X_MASK Script_Extensions: mask includes Script | |
| SRC_BIDI | back to summary |
|---|---|
| public static final int SRC_BIDI From ubidi_props.c/ubidi.icu | |
| SRC_CHAR | back to summary |
|---|---|
| public static final int SRC_CHAR From uchar.c/uprops.icu main trie | |
| SRC_NFC | back to summary |
|---|---|
| public static final int SRC_NFC From normalizer2impl.cpp/nfc.nrm | |
| SRC_NFKC | back to summary |
|---|---|
| public static final int SRC_NFKC From normalizer2impl.cpp/nfkc.nrm | |
| SRC_PROPSVEC | back to summary |
|---|---|
| public static final int SRC_PROPSVEC From uchar.c/uprops.icu properties vectors trie | |
| SURROGATE_OFFSET_ | back to summary |
|---|---|
| private static final int SURROGATE_OFFSET_ Offset to add to combined surrogate pair to avoid masking. | |
| TERMINAL_PUNCTUATION_PROPERTY_ | back to summary |
|---|---|
| private static final int TERMINAL_PUNCTUATION_PROPERTY_ | |
| TYPE_MASK | back to summary |
|---|---|
| public static final int TYPE_MASK Character type mask | |
| UNIFIED_IDEOGRAPH_PROPERTY_ | back to summary |
|---|---|
| private static final int UNIFIED_IDEOGRAPH_PROPERTY_ | |
| VARIATION_SELECTOR_PROPERTY_ | back to summary |
|---|---|
| private static final int VARIATION_SELECTOR_PROPERTY_ | |
| WB_MASK | back to summary |
|---|---|
| private static final int WB_MASK | |
| WB_SHIFT | back to summary |
|---|---|
| private static final int WB_SHIFT | |
| WHITE_SPACE_PROPERTY_ | back to summary |
|---|---|
| private static final int WHITE_SPACE_PROPERTY_ Additional properties used in internal trie data | |
| XID_CONTINUE_PROPERTY_ | back to summary |
|---|---|
| private static final int XID_CONTINUE_PROPERTY_ | |
| XID_START_PROPERTY_ | back to summary |
|---|---|
| private static final int XID_START_PROPERTY_ | |
| UCharacterProperty | back to summary |
|---|---|
| private UCharacterProperty() throws IOException Constructor
| |
| digit | back to summary |
|---|---|
| public int digit(int c) | |
| getAdditional | back to summary |
|---|---|
| public int getAdditional(int codepoint, int column) Gets the unicode additional properties. Java version of C u_getUnicodeProperties().
| |
| getAge | back to summary |
|---|---|
| public VersionInfo getAge(int codepoint) Get the "age" of the code point. The "age" is the Unicode version when the code point was first designated (as a non-character or for Private Use) or assigned a character. This can be useful to avoid emitting code points to receiving processes that do not accept newer characters. The data is from the UCD file DerivedAge.txt. This API does not check the validity of the codepoint.
| |
| getEuropeanDigit | back to summary |
|---|---|
| public static int getEuropeanDigit(int ch) Returns the digit values of characters like 'A' - 'Z', normal, half-width and full-width. This method assumes that the other digit characters are checked by the calling method.
| |
| getIntPropertyValue | back to summary |
|---|---|
| public int getIntPropertyValue(int c, int which) | |
| getMask | back to summary |
|---|---|
| public static final int getMask(int type) Gets the type mask
| |
| getNumericTypeValue | back to summary |
|---|---|
| private static final int getNumericTypeValue(int props) | |
| getProperty | back to summary |
|---|---|
| public final int getProperty(int ch) Gets the main property value for code point ch.
| |
| getRawSupplementary | back to summary |
|---|---|
| public static int getRawSupplementary(char lead, char trail) Forms a supplementary code point from the argument character
| |
| getType | back to summary |
|---|---|
| public int getType(int c) | |
| mergeScriptCodeOrIndex | back to summary |
|---|---|
| public static final int mergeScriptCodeOrIndex(int scriptX) | |
| ntvGetType | back to summary |
|---|---|
| private static final int ntvGetType(int ntv) | |
| upropsvec_addPropertyStarts | back to summary |
|---|---|
| public void upropsvec_addPropertyStarts(UnicodeSet set) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| BiDiIntProperty | back to summary |
|---|---|
| pack-priv BiDiIntProperty() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| CombiningClassIntProperty | back to summary |
|---|---|
| pack-priv CombiningClassIntProperty(int source) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int |
| column | back to summary |
|---|---|
| pack-priv int column | |
| mask | back to summary |
|---|---|
| pack-priv int mask | |
| shift | back to summary |
|---|---|
| pack-priv int shift | |
| IntProperty | back to summary |
|---|---|
| pack-priv IntProperty(int column, int mask, int shift) | |
| IntProperty | back to summary |
|---|---|
| pack-priv IntProperty(int source) | |
| getValue | back to summary |
|---|---|
| pack-priv int getValue(int c) | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isDataVersionAcceptable(byte[] version)
Implements jdk. Method used in ICUBinary.readHeader() to provide data format authentication. |
| IsAcceptable | back to summary |
|---|---|
| private IsAcceptable() | |
| isDataVersionAcceptable | back to summary |
|---|---|
| public boolean isDataVersionAcceptable(byte[] version) Implements jdk. Doc from jdk. Method used in ICUBinary.readHeader() to provide data format authentication. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| NormQuickCheckIntProperty | back to summary |
|---|---|
| pack-priv NormQuickCheckIntProperty(int source, int which, int max) | |