String.toLowerCase() and
String.toUpperCase(), that handles special casing with
conditions. In other words, it handles the mappings with conditions
that are defined in
Special
Casing Properties file.
Note that the unconditional case mappings (including 1:M mappings)
are handled in Character.toLower/UpperCase().
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | ConditionalSpecialCasing.
An internal class that represents an entry in the Special Casing Properties. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static ConditionalSpecialCasing. | |
| private static final HashMap | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | |
| private static boolean | isAfterSoftDotted(String src, int index)
Implements the "After_Soft_Dotted" condition Specification The last preceding character with combining class of zero before C was Soft_Dotted, and there is no intervening combining character class 230 (ABOVE). |
| private static boolean | isBeforeDot(String src, int index)
Implements the "Before_Dot" condition Specification C is followed by |
| private static boolean | |
| private static boolean | |
| private static boolean | isFinalCased(String src, int index, Locale locale)
Implements the "Final_Cased" condition Specification Within the closest word boundaries containing C, there is a cased letter before C, and there is no cased letter after C. |
| private static boolean | isMoreAbove(String src, int index)
Implements the "More_Above" condition Specification C is followed by one or more characters of combining class 230 (ABOVE) in the combining character sequence. |
| private static boolean | |
| private static char[] | |
| pack-priv static char[] | |
| pack-priv static int | |
| pack-priv static char[] | |
| pack-priv static int |
| AFTER_I | back to summary |
|---|---|
| pack-priv static final int AFTER_I | |
| AFTER_SOFT_DOTTED | back to summary |
|---|---|
| pack-priv static final int AFTER_SOFT_DOTTED | |
| COMBINING_CLASS_ABOVE | back to summary |
|---|---|
| pack-priv static final int COMBINING_CLASS_ABOVE | |
| entry | back to summary |
|---|---|
| pack-priv static ConditionalSpecialCasing. | |
| entryTable | back to summary |
|---|---|
| private static final HashMap<Integer, HashSet<ConditionalSpecialCasing. | |
| FINAL_CASED | back to summary |
|---|---|
| pack-priv static final int FINAL_CASED | |
| MORE_ABOVE | back to summary |
|---|---|
| pack-priv static final int MORE_ABOVE | |
| NOT_BEFORE_DOT | back to summary |
|---|---|
| pack-priv static final int NOT_BEFORE_DOT | |
| ConditionalSpecialCasing | back to summary |
|---|---|
| pack-priv ConditionalSpecialCasing() | |
| isAfterI | back to summary |
|---|---|
| private static boolean isAfterI(String src, int index) Implements the "After_I" condition Specification The last preceding base character was an uppercase I, and there is no intervening combining character class 230 (ABOVE). Regular Expression: Before C: [I]([{cc!=230}&{cc!=0}])* | |
| isAfterSoftDotted | back to summary |
|---|---|
| private static boolean isAfterSoftDotted(String src, int index) Implements the "After_Soft_Dotted" condition Specification The last preceding character with combining class of zero before C was Soft_Dotted, and there is no intervening combining character class 230 (ABOVE). Regular Expression: Before C: [{Soft_Dotted==true}]([{cc!=230}&{cc!=0}])* | |
| isBeforeDot | back to summary |
|---|---|
| private static boolean isBeforeDot(String src, int index) Implements the "Before_Dot" condition Specification C is followed by | |
| isCased | back to summary |
|---|---|
| private static boolean isCased(int ch) Examines whether a character is 'cased'. A character C is defined to be 'cased' if and only if at least one of following are true for C: uppercase==true, or lowercase==true, or general_category==titlecase_letter. The uppercase and lowercase property values are specified in the data file DerivedCoreProperties.txt in the Unicode Character Database. | |
| isConditionMet | back to summary |
|---|---|
| private static boolean isConditionMet(String src, int index, Locale locale, int condition) | |
| isFinalCased | back to summary |
|---|---|
| private static boolean isFinalCased(String src, int index, Locale locale) Implements the "Final_Cased" condition Specification Within the closest word boundaries containing C, there is a cased letter before C, and there is no cased letter after C. Regular Expression: Before C: [{cased==true}][{wordBoundary!=true}]* After C: !([{wordBoundary!=true}]*[{cased}]) | |
| isMoreAbove | back to summary |
|---|---|
| private static boolean isMoreAbove(String src, int index) Implements the "More_Above" condition Specification C is followed by one or more characters of combining class 230 (ABOVE) in the combining character sequence. Regular Expression: After C: [{cc!=0}]*[{cc==230}] | |
| isSoftDotted | back to summary |
|---|---|
| private static boolean isSoftDotted(int ch) | |
| lookUpTable | back to summary |
|---|---|
| private static char[] lookUpTable(String src, int index, Locale locale, boolean bLowerCasing) | |
| toLowerCaseCharArray | back to summary |
|---|---|
| pack-priv static char[] toLowerCaseCharArray(String src, int index, Locale locale) | |
| toLowerCaseEx | back to summary |
|---|---|
| pack-priv static int toLowerCaseEx(String src, int index, Locale locale) | |
| toUpperCaseCharArray | back to summary |
|---|---|
| pack-priv static char[] toUpperCaseCharArray(String src, int index, Locale locale) | |
| toUpperCaseEx | back to summary |
|---|---|
| pack-priv static int toUpperCaseEx(String src, int index, Locale locale) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv String | |
| pack-priv char[] | |
| pack-priv char[] |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv String | |
| pack-priv char[] | |
| pack-priv char[] |
| ch | back to summary |
|---|---|
| pack-priv int ch | |
| condition | back to summary |
|---|---|
| pack-priv int condition | |
| lang | back to summary |
|---|---|
| pack-priv String lang | |
| lower | back to summary |
|---|---|
| pack-priv char[] lower | |
| upper | back to summary |
|---|---|
| pack-priv char[] upper | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(int ch, char[] lower, char[] upper, String lang, int condition) | |
| getCodePoint | back to summary |
|---|---|
| pack-priv int getCodePoint() | |
| getCondition | back to summary |
|---|---|
| pack-priv int getCondition() | |
| getLanguage | back to summary |
|---|---|
| pack-priv String getLanguage() | |
| getLowerCase | back to summary |
|---|---|
| pack-priv char[] getLowerCase() | |
| getUpperCase | back to summary |
|---|---|
| pack-priv char[] getUpperCase() | |