| Modifier and Type | Class and Description |
|---|---|
| public static interface | UCaseProps.ContextIterator
Iterator for string case mappings, which need to look at the context (surrounding text) of a given character for conditional mappings. |
| private static class | |
| pack-priv static class | UCaseProps.LatinCase
Fast case mapping data for ASCII/Latin. |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final int | |
| private static final int | |
| public static final StringBuilder | |
| 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 | |
| private static final int | |
| private static final int | |
| private static final int | |
| private String | |
| private static final byte[] | |
| private static final int | |
| pack-priv static final int | FOLD_CASE_OPTIONS_MASK
Bit mask for getting just the options from a string compare options word that are relevant for case folding (of a single string or code point). |
| private static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| pack-priv static final int | |
| private int[] | |
| public static final UCaseProps | |
| private static final String | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final String | |
| pack-priv static final int | |
| public static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | |
| pack-priv static final int | |
| public static final int | |
| public static final int | MAX_STRING_LENGTH
For string case mappings, a single character (a code point) is mapped either to itself (in which case in-place mapping functions do nothing), or to another single code point, or to a string. |
| public static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final int | |
| private Trie2_16 | |
| public static final int | |
| private char[] | |
| private static final int | |
| private static final int | |
| private static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addCaseClosure(int c, UnicodeSet set)
Adds all simple case mappings and the full case folding for c to sa, and also adds special case closure mappings. |
| public final void | |
| public final void | |
| public final boolean | Returns: true if the string was foundMaps the string to single code points and adds the associated case closure mappings. |
| public final int | |
| public static final int | |
| public static final int | |
| private static final int | |
| pack-priv static final int | |
| public final int | |
| private static final int | |
| private final int | |
| private final long | |
| pack-priv static Trie2_16 | |
| public final int | |
| private static final int | Returns: like getTypeFromProps() but also sets IGNORABLE if props indicate case-ignorable
|
| pack-priv static final int | |
| public final int | |
| public final boolean | |
| private static final boolean | |
| public final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean | |
| public final boolean | |
| pack-priv static final boolean | |
| pack-priv static final boolean | |
| private final void | |
| private static final byte | |
| private final int | |
| public final int | |
| public final int | Returns: Output code point or string length, see MAX_STRING_LENGTH.Character to be mapped. c, UCaseProps.Character iterator, used for context-sensitive mappings.
See ContextIterator for details.
If iter==null then a context-independent result is returned. iter,If the mapping result is a string, then it is appended to out. out, int Case locale value from ucase_getCaseLocale(). caseLocale)Get the full lowercase mapping for c. |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| private final int | toUpperOrTitle(int c, UCaseProps.
|
| ABOVE | back to summary |
|---|---|
| private static final int ABOVE | |
| CLOSURE_MAX_LENGTH | back to summary |
|---|---|
| private static final int CLOSURE_MAX_LENGTH | |
| DATA_FILE_NAME | back to summary |
|---|---|
| private static final String DATA_FILE_NAME | |
| DATA_NAME | back to summary |
|---|---|
| private static final String DATA_NAME | |
| DATA_TYPE | back to summary |
|---|---|
| private static final String DATA_TYPE | |
| DELTA_SHIFT | back to summary |
|---|---|
| private static final int DELTA_SHIFT | |
| DOT_MASK | back to summary |
|---|---|
| private static final int DOT_MASK | |
| dummyStringBuilder | back to summary |
|---|---|
| public static final StringBuilder dummyStringBuilder | |
| EXC_CLOSURE | back to summary |
|---|---|
| private static final int EXC_CLOSURE | |
| EXC_CONDITIONAL_FOLD | back to summary |
|---|---|
| private static final int EXC_CONDITIONAL_FOLD | |
| EXC_CONDITIONAL_SPECIAL | back to summary |
|---|---|
| private static final int EXC_CONDITIONAL_SPECIAL | |
| EXC_DELTA | back to summary |
|---|---|
| private static final int EXC_DELTA | |
| EXC_DELTA_IS_NEGATIVE | back to summary |
|---|---|
| private static final int EXC_DELTA_IS_NEGATIVE | |
| EXC_DOT_SHIFT | back to summary |
|---|---|
| private static final int EXC_DOT_SHIFT | |
| EXC_DOUBLE_SLOTS | back to summary |
|---|---|
| private static final int EXC_DOUBLE_SLOTS | |
| EXC_FOLD | back to summary |
|---|---|
| private static final int EXC_FOLD | |
| EXC_FULL_MAPPINGS | back to summary |
|---|---|
| private static final int EXC_FULL_MAPPINGS | |
| EXC_LOWER | back to summary |
|---|---|
| private static final int EXC_LOWER | |
| EXC_NO_SIMPLE_CASE_FOLDING | back to summary |
|---|---|
| private static final int EXC_NO_SIMPLE_CASE_FOLDING | |
| EXC_SENSITIVE | back to summary |
|---|---|
| private static final int EXC_SENSITIVE | |
| EXC_SHIFT | back to summary |
|---|---|
| private static final int EXC_SHIFT | |
| EXC_TITLE | back to summary |
|---|---|
| private static final int EXC_TITLE | |
| EXC_UPPER | back to summary |
|---|---|
| private static final int EXC_UPPER | |
| EXCEPTION | back to summary |
|---|---|
| private static final int EXCEPTION | |
| exceptions | back to summary |
|---|---|
| private String exceptions | |
| flagsOffset | back to summary |
|---|---|
| private static final byte[] flagsOffset | |
| FMT | back to summary |
|---|---|
| private static final int FMT | |
| FOLD_CASE_OPTIONS_MASK | back to summary |
|---|---|
| pack-priv static final int FOLD_CASE_OPTIONS_MASK Bit mask for getting just the options from a string compare options word that are relevant for case folding (of a single string or code point). Currently only bit 0 for FOLD_CASE_EXCLUDE_SPECIAL_I. It is conceivable that at some point we might use one more bit for using uppercase sharp s. It is conceivable that at some point we might want the option to use only simple case foldings when operating on strings.
| |
| FULL_LOWER | back to summary |
|---|---|
| private static final int FULL_LOWER | |
| iDot | back to summary |
|---|---|
| private static final String iDot | |
| iDotAcute | back to summary |
|---|---|
| private static final String iDotAcute | |
| iDotGrave | back to summary |
|---|---|
| private static final String iDotGrave | |
| iDotTilde | back to summary |
|---|---|
| private static final String iDotTilde | |
| IGNORABLE | back to summary |
|---|---|
| pack-priv static final int IGNORABLE | |
| indexes | back to summary |
|---|---|
| private int[] indexes | |
| INSTANCE | back to summary |
|---|---|
| public static final UCaseProps INSTANCE | |
| iOgonekDot | back to summary |
|---|---|
| private static final String iOgonekDot | |
| IX_EXC_LENGTH | back to summary |
|---|---|
| private static final int IX_EXC_LENGTH | |
| IX_TOP | back to summary |
|---|---|
| private static final int IX_TOP | |
| IX_TRIE_SIZE | back to summary |
|---|---|
| private static final int IX_TRIE_SIZE | |
| IX_UNFOLD_LENGTH | back to summary |
|---|---|
| private static final int IX_UNFOLD_LENGTH | |
| jDot | back to summary |
|---|---|
| private static final String jDot | |
| LOC_ARMENIAN | back to summary |
|---|---|
| pack-priv static final int LOC_ARMENIAN | |
| LOC_DUTCH | back to summary |
|---|---|
| public static final int LOC_DUTCH | |
| LOC_GREEK | back to summary |
|---|---|
| pack-priv static final int LOC_GREEK | |
| LOC_LITHUANIAN | back to summary |
|---|---|
| pack-priv static final int LOC_LITHUANIAN | |
| LOC_ROOT | back to summary |
|---|---|
| public static final int LOC_ROOT | |
| LOC_TURKISH | back to summary |
|---|---|
| pack-priv static final int LOC_TURKISH | |
| LOWER | back to summary |
|---|---|
| public static final int LOWER | |
| MAX_STRING_LENGTH | back to summary |
|---|---|
| public static final int MAX_STRING_LENGTH For string case mappings, a single character (a code point) is mapped either to itself (in which case in-place mapping functions do nothing), or to another single code point, or to a string. Aside from the string contents, these are indicated with a single int value as follows: Mapping to self: Negative values (~self instead of -self to support U+0000) Mapping to another code point: Positive values >MAX_STRING_LENGTH Mapping to a string: The string length (0..MAX_STRING_LENGTH) is returned. Note that the string result may indeed have zero length. | |
| NONE | back to summary |
|---|---|
| public static final int NONE | |
| OTHER_ACCENT | back to summary |
|---|---|
| private static final int OTHER_ACCENT | |
| SENSITIVE | back to summary |
|---|---|
| private static final int SENSITIVE | |
| SOFT_DOTTED | back to summary |
|---|---|
| private static final int SOFT_DOTTED | |
| TITLE | back to summary |
|---|---|
| public static final int TITLE | |
| trie | back to summary |
|---|---|
| private Trie2_16 trie | |
| TYPE_MASK | back to summary |
|---|---|
| public static final int TYPE_MASK | |
| unfold | back to summary |
|---|---|
| private char[] unfold | |
| UNFOLD_ROW_WIDTH | back to summary |
|---|---|
| private static final int UNFOLD_ROW_WIDTH | |
| UNFOLD_ROWS | back to summary |
|---|---|
| private static final int UNFOLD_ROWS | |
| UNFOLD_STRING_WIDTH | back to summary |
|---|---|
| private static final int UNFOLD_STRING_WIDTH | |
| UPPER | back to summary |
|---|---|
| public static final int UPPER | |
| UCaseProps | back to summary |
|---|---|
| private UCaseProps() throws IOException | |
| addCaseClosure | back to summary |
|---|---|
| public final void addCaseClosure(int c, UnicodeSet set) Adds all simple case mappings and the full case folding for c to sa, and also adds special case closure mappings. c itself is not added. For example, the mappings - for s include long s - for sharp s include ss - for k include the Kelvin sign | |
| addPropertyStarts | back to summary |
|---|---|
| public final void addPropertyStarts(UnicodeSet set) | |
| addSimpleCaseClosure | back to summary |
|---|---|
| public final void addSimpleCaseClosure(int c, UnicodeSet set) | |
| addStringCaseClosure | back to summary |
|---|---|
| public final boolean addStringCaseClosure(String s, UnicodeSet set) Maps the string to single code points and adds the associated case closure mappings. The string is mapped to code points if it is their full case folding string. In other words, this performs a reverse full case folding and then adds the case closure items of the resulting code points. If the string is found and its closure applied, then the string itself is added as well as part of its code points' closure.
| |
| fold | back to summary |
|---|---|
| public final int fold(int c, int options) | |
| getCaseLocale | back to summary |
|---|---|
| public static final int getCaseLocale(Locale locale) | |
| getCaseLocale | back to summary |
|---|---|
| public static final int getCaseLocale(ULocale locale) | |
| getCaseLocale | back to summary |
|---|---|
| private static final int getCaseLocale(String language) Accepts both 2- and 3-letter language subtags. | |
| getDelta | back to summary |
|---|---|
| pack-priv static final int getDelta(int props) | |
| getDotType | back to summary |
|---|---|
public final int getDotType(int c)
| |
| getExceptionsOffset | back to summary |
|---|---|
| private static final int getExceptionsOffset(int props) | |
| getSlotValue | back to summary |
|---|---|
| private final int getSlotValue(int excWord, int index, int excOffset) | |
| getSlotValueAndOffset | back to summary |
|---|---|
| private final long getSlotValueAndOffset(int excWord, int index, int excOffset) | |
| getTrie | back to summary |
|---|---|
| pack-priv static Trie2_16 getTrie() | |
| getType | back to summary |
|---|---|
public final int getType(int c)
| |
| getTypeAndIgnorableFromProps | back to summary |
|---|---|
private static final int getTypeAndIgnorableFromProps(int props)
| |
| getTypeFromProps | back to summary |
|---|---|
pack-priv static final int getTypeFromProps(int props)
| |
| getTypeOrIgnorable | back to summary |
|---|---|
public final int getTypeOrIgnorable(int c)
| |
| hasBinaryProperty | back to summary |
|---|---|
| public final boolean hasBinaryProperty(int c, int which) | |
| hasSlot | back to summary |
|---|---|
| private static final boolean hasSlot(int flags, int index) | |
| isCaseSensitive | back to summary |
|---|---|
| public final boolean isCaseSensitive(int c) | |
| isFollowedByCasedLetter | back to summary |
|---|---|
| private final boolean isFollowedByCasedLetter(UCaseProps. | |
| isFollowedByDotAbove | back to summary |
|---|---|
| private final boolean isFollowedByDotAbove(UCaseProps. | |
| isFollowedByMoreAbove | back to summary |
|---|---|
| private final boolean isFollowedByMoreAbove(UCaseProps. | |
| isPrecededBy_I | back to summary |
|---|---|
| private final boolean isPrecededBy_I(UCaseProps. | |
| isPrecededBySoftDotted | back to summary |
|---|---|
| private final boolean isPrecededBySoftDotted(UCaseProps. | |
| isSoftDotted | back to summary |
|---|---|
| public final boolean isSoftDotted(int c) | |
| isUpperOrTitleFromProps | back to summary |
|---|---|
| pack-priv static final boolean isUpperOrTitleFromProps(int props) | |
| propsHasException | back to summary |
|---|---|
| pack-priv static final boolean propsHasException(int props) | |
| readData | back to summary |
|---|---|
| private final void readData(ByteBuffer bytes) throws IOException | |
| slotOffset | back to summary |
|---|---|
| private static final byte slotOffset(int flags, int index) | |
| strcmpMax | back to summary |
|---|---|
| private final int strcmpMax(String s, int unfoldOffset, int max) | |
| toFullFolding | back to summary |
|---|---|
| public final int toFullFolding(int c, Appendable out, int options) | |
| toFullLower | back to summary |
|---|---|
| public final int toFullLower(int c, UCaseProps. Get the full lowercase mapping for c.
| |
| toFullTitle | back to summary |
|---|---|
| public final int toFullTitle(int c, UCaseProps. | |
| toFullUpper | back to summary |
|---|---|
| public final int toFullUpper(int c, UCaseProps. | |
| tolower | back to summary |
|---|---|
| public final int tolower(int c) | |
| totitle | back to summary |
|---|---|
| public final int totitle(int c) | |
| toupper | back to summary |
|---|---|
| public final int toupper(int c) | |
| toUpperOrTitle | back to summary |
|---|---|
| private final int toUpperOrTitle(int c, UCaseProps. | |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Next code point, or <0 when the iteration is done.Iterate and return the next code point, moving in the direction determined by the reset() call. |
| public void | reset(int
>0: Begin iterating forward from the first code point
after the one that is being case-mapped.
<0: Begin iterating backward from the first code point
before the one that is being case-mapped. dir)Reset the iterator for forward or backward iteration. |
| next | back to summary |
|---|---|
| public int next() Iterate and return the next code point, moving in the direction determined by the reset() call.
| |
| reset | back to summary |
|---|---|
| public void reset(int dir) Reset the iterator for forward or backward iteration.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isDataVersionAcceptable(byte[]
version of the current data version)Implements com. |
| IsAcceptable | back to summary |
|---|---|
| private IsAcceptable() | |
| isDataVersionAcceptable | back to summary |
|---|---|
| public boolean isDataVersionAcceptable(byte[] version) Implements com. Doc from com. Method used in ICUBinary.readHeader() to provide data format authentication.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final byte | EXC
Exception: Complex mapping, or too-large delta. |
| pack-priv static final char | LIMIT
Case mapping/folding data for code points up to U+017F. |
| pack-priv static final char | LONG_S
U+017F case-folds and uppercases crossing the ASCII boundary. |
| pack-priv static final byte[] | TO_LOWER_NORMAL
Deltas for lowercasing for most locales, and default case folding. |
| pack-priv static final byte[] | TO_LOWER_TR_LT
Deltas for lowercasing for tr/az/lt, and Turkic case folding. |
| pack-priv static final byte[] | TO_UPPER_NORMAL
Deltas for uppercasing for most locales. |
| pack-priv static final byte[] | TO_UPPER_TR
Deltas for uppercasing for tr/az. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| EXC | back to summary |
|---|---|
| pack-priv static final byte EXC Exception: Complex mapping, or too-large delta. | |
| LIMIT | back to summary |
|---|---|
| pack-priv static final char LIMIT Case mapping/folding data for code points up to U+017F. | |
| LONG_S | back to summary |
|---|---|
| pack-priv static final char LONG_S U+017F case-folds and uppercases crossing the ASCII boundary. | |
| TO_LOWER_NORMAL | back to summary |
|---|---|
| pack-priv static final byte[] TO_LOWER_NORMAL Deltas for lowercasing for most locales, and default case folding. | |
| TO_LOWER_TR_LT | back to summary |
|---|---|
| pack-priv static final byte[] TO_LOWER_TR_LT Deltas for lowercasing for tr/az/lt, and Turkic case folding. | |
| TO_UPPER_NORMAL | back to summary |
|---|---|
| pack-priv static final byte[] TO_UPPER_NORMAL Deltas for uppercasing for most locales. | |
| TO_UPPER_TR | back to summary |
|---|---|
| pack-priv static final byte[] TO_UPPER_TR Deltas for uppercasing for tr/az. | |
| LatinCase | back to summary |
|---|---|
| pack-priv LatinCase() | |