public final class UCaseProps extends Object
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Modifier and Type | Field and Description |
|---|---|
static StringBuilder |
dummyStringBuilder |
static UCaseProps |
INSTANCE |
static int |
LOC_DUTCH |
static int |
LOC_ROOT |
static int |
LOWER |
static 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.
|
static int |
NONE |
static int |
TITLE |
static int |
TYPE_MASK |
static int |
UPPER |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
addPropertyStarts(UnicodeSet set) |
void |
addSimpleCaseClosure(int c,
UnicodeSet set) |
boolean |
addStringCaseClosure(String s,
UnicodeSet set)
Maps the string to single code points and adds the associated case closure
mappings.
|
int |
fold(int c,
int options) |
static int |
getCaseLocale(Locale locale) |
static int |
getCaseLocale(ULocale locale) |
int |
getDotType(int c) |
int |
getType(int c) |
int |
getTypeOrIgnorable(int c) |
boolean |
hasBinaryProperty(int c,
int which) |
boolean |
isCaseSensitive(int c) |
boolean |
isSoftDotted(int c) |
int |
toFullFolding(int c,
Appendable out,
int options) |
int |
toFullLower(int c,
UCaseProps.ContextIterator iter,
Appendable out,
int caseLocale)
Get the full lowercase mapping for c.
|
int |
toFullTitle(int c,
UCaseProps.ContextIterator iter,
Appendable out,
int caseLocale) |
int |
toFullUpper(int c,
UCaseProps.ContextIterator iter,
Appendable out,
int caseLocale) |
int |
tolower(int c) |
int |
totitle(int c) |
int |
toupper(int c) |
public static final int MAX_STRING_LENGTH
public static final int LOC_ROOT
public static final int LOC_DUTCH
public static final StringBuilder dummyStringBuilder
public static final int TYPE_MASK
public static final int NONE
public static final int LOWER
public static final int UPPER
public static final int TITLE
public static final UCaseProps INSTANCE
public final void addPropertyStarts(UnicodeSet set)
public final int tolower(int c)
public final int toupper(int c)
public final int totitle(int c)
public final void addCaseClosure(int c,
UnicodeSet set)
public final void addSimpleCaseClosure(int c,
UnicodeSet set)
public final boolean addStringCaseClosure(String s, UnicodeSet set)
public final int getType(int c)
public final int getTypeOrIgnorable(int c)
public final int getDotType(int c)
public final boolean isSoftDotted(int c)
public final boolean isCaseSensitive(int c)
public static final int getCaseLocale(Locale locale)
public static final int getCaseLocale(ULocale locale)
public final int toFullLower(int c,
UCaseProps.ContextIterator iter,
Appendable out,
int caseLocale)
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().UCaseProps.ContextIterator,
UCaseProps.MAX_STRING_LENGTHpublic final int toFullUpper(int c,
UCaseProps.ContextIterator iter,
Appendable out,
int caseLocale)
public final int toFullTitle(int c,
UCaseProps.ContextIterator iter,
Appendable out,
int caseLocale)
public final int fold(int c,
int options)
public final int toFullFolding(int c,
Appendable out,
int options)
public final boolean hasBinaryProperty(int c,
int which)