Class UCaseProps
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.UCaseProps
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceIterator for string case mappings, which need to look at the context (surrounding text) of a given character for conditional mappings. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringBuilderstatic final UCasePropsstatic final intstatic final intstatic final intstatic final intFor 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.static final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddCaseClosure(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.final voidfinal voidaddSimpleCaseClosure(int c, UnicodeSet set) final booleanaddStringCaseClosure(String s, UnicodeSet set) Maps the string to single code points and adds the associated case closure mappings.final intfold(int c, int options) static final intgetCaseLocale(Locale locale) static final intgetCaseLocale(ULocale locale) final intgetDotType(int c) final intgetType(int c) final intgetTypeOrIgnorable(int c) final booleanhasBinaryProperty(int c, int which) final booleanisCaseSensitive(int c) final booleanisSoftDotted(int c) final inttoFullFolding(int c, Appendable out, int options) final inttoFullLower(int c, UCaseProps.ContextIterator iter, Appendable out, int caseLocale) Get the full lowercase mapping for c.final inttoFullTitle(int c, UCaseProps.ContextIterator iter, Appendable out, int caseLocale) final inttoFullUpper(int c, UCaseProps.ContextIterator iter, Appendable out, int caseLocale) final inttolower(int c) final inttotitle(int c) final inttoupper(int c)
-
Field Details
-
MAX_STRING_LENGTH
public static final int MAX_STRING_LENGTHFor 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.- See Also:
-
LOC_ROOT
public static final int LOC_ROOT- See Also:
-
LOC_DUTCH
public static final int LOC_DUTCH- See Also:
-
dummyStringBuilder
-
TYPE_MASK
public static final int TYPE_MASK- See Also:
-
NONE
public static final int NONE- See Also:
-
LOWER
public static final int LOWER- See Also:
-
UPPER
public static final int UPPER- See Also:
-
TITLE
public static final int TITLE- See Also:
-
INSTANCE
-
-
Method Details
-
addPropertyStarts
-
tolower
public final int tolower(int c) -
toupper
public final int toupper(int c) -
totitle
public final int totitle(int c) -
addCaseClosure
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 -
addSimpleCaseClosure
-
addStringCaseClosure
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.- Returns:
- true if the string was found
-
getType
public final int getType(int c) - Returns:
- NONE, LOWER, UPPER, TITLE
-
getTypeOrIgnorable
public final int getTypeOrIgnorable(int c) - Returns:
- like getType() but also sets IGNORABLE if c is case-ignorable
-
getDotType
public final int getDotType(int c) - Returns:
- NO_DOT, SOFT_DOTTED, ABOVE, OTHER_ACCENT
-
isSoftDotted
public final boolean isSoftDotted(int c) -
isCaseSensitive
public final boolean isCaseSensitive(int c) -
getCaseLocale
-
getCaseLocale
-
toFullLower
public final int toFullLower(int c, UCaseProps.ContextIterator iter, Appendable out, int caseLocale) Get the full lowercase mapping for c.- Parameters:
c- Character to be mapped.iter- Character iterator, used for context-sensitive mappings. See ContextIterator for details. If iter==null then a context-independent result is returned.out- If the mapping result is a string, then it is appended to out.caseLocale- Case locale value from ucase_getCaseLocale().- Returns:
- Output code point or string length, see MAX_STRING_LENGTH.
- See Also:
-
toFullUpper
public final int toFullUpper(int c, UCaseProps.ContextIterator iter, Appendable out, int caseLocale) -
toFullTitle
public final int toFullTitle(int c, UCaseProps.ContextIterator iter, Appendable out, int caseLocale) -
fold
public final int fold(int c, int options) -
toFullFolding
-
hasBinaryProperty
public final boolean hasBinaryProperty(int c, int which)
-