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 |
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) |
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) |
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,
StringBuilder out,
int options) |
int |
toFullLower(int c,
UCaseProps.ContextIterator iter,
StringBuilder out,
ULocale locale,
int[] locCache)
Get the full lowercase mapping for c.
|
int |
toFullTitle(int c,
UCaseProps.ContextIterator iter,
StringBuilder out,
ULocale locale,
int[] locCache) |
int |
toFullUpper(int c,
UCaseProps.ContextIterator iter,
StringBuilder out,
ULocale locale,
int[] locCache) |
int |
tolower(int c) |
int |
totitle(int c) |
int |
toupper(int c) |
public static final int MAX_STRING_LENGTH
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 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 final int toFullLower(int c,
UCaseProps.ContextIterator iter,
StringBuilder out,
ULocale locale,
int[] locCache)
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.locale - Locale ID for locale-dependent mappings.locCache - Initialize locCache[0] to 0; may be used to cache the result of parsing
the locale ID for subsequent calls.
Can be null.UCaseProps.ContextIterator,
MAX_STRING_LENGTHpublic final int toFullUpper(int c,
UCaseProps.ContextIterator iter,
StringBuilder out,
ULocale locale,
int[] locCache)
public final int toFullTitle(int c,
UCaseProps.ContextIterator iter,
StringBuilder out,
ULocale locale,
int[] locCache)
public final int fold(int c,
int options)
public final int toFullFolding(int c,
StringBuilder out,
int options)
public final boolean hasBinaryProperty(int c,
int which)