| java.lang.Object com.ibm.icu.impl.UCaseProps
All known Subclasses: com.ibm.icu.text.ReplaceableContextIterator,
UCaseProps | final public class UCaseProps (Code) | | |
Inner Class :public interface ContextIterator | |
Field Summary | |
final public static int | LOWER | final public 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.
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. | final public static int | NONE | final public static int | TITLE | final public static int | TYPE_MASK | final public static int | UPPER |
Method Summary | |
final public 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. | final public void | addPropertyStarts(UnicodeSet set) | final public boolean | addStringCaseClosure(String s, UnicodeSet set) Maps the string to single code points and adds the associated case closure
mappings. | final public int | fold(int c, int options) | final public int | getDotType(int c) | final public static synchronized UCaseProps | getDummy() Get a singleton dummy object, one that works with no real data. | final public static synchronized UCaseProps | getSingleton() | final public int | getType(int c) | final public int | getTypeOrIgnorable(int c) | final public boolean | isCaseSensitive(int c) | final public boolean | isSoftDotted(int c) | final public int | toFullFolding(int c, StringBuffer out, int options) | final public int | toFullLower(int c, ContextIterator iter, StringBuffer out, ULocale locale, int[] locCache) Get the full lowercase mapping for c.
Parameters: c - Character to be mapped. Parameters: iter - Character iterator, used for context-sensitive mappings.See ContextIterator for details.If iter==null then a context-independent result is returned. Parameters: out - If the mapping result is a string, then it is appended to out. Parameters: locale - Locale ID for locale-dependent mappings. Parameters: locCache - Initialize locCache[0] to 0; may be used to cache the result of parsingthe locale ID for subsequent calls.Can be null. | final public int | toFullTitle(int c, ContextIterator iter, StringBuffer out, ULocale locale, int[] locCache) | final public int | toFullUpper(int c, ContextIterator iter, StringBuffer out, ULocale locale, int[] locCache) | final public int | tolower(int c) | final public int | totitle(int c) | final public int | toupper(int c) |
LOWER | final public static int LOWER(Code) | | |
MAX_STRING_LENGTH | final public static int MAX_STRING_LENGTH(Code) | | 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 | final public static int NONE(Code) | | |
TITLE | final public static int TITLE(Code) | | |
TYPE_MASK | final public static int TYPE_MASK(Code) | | |
UPPER | final public static int UPPER(Code) | | |
addCaseClosure | final public void addCaseClosure(int c, UnicodeSet set)(Code) | | 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
|
addStringCaseClosure | final public boolean addStringCaseClosure(String s, UnicodeSet set)(Code) | | 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.
true if the string was found |
fold | final public int fold(int c, int options)(Code) | | |
getDotType | final public int getDotType(int c)(Code) | | NO_DOT, SOFT_DOTTED, ABOVE, OTHER_ACCENT |
getDummy | final public static synchronized UCaseProps getDummy()(Code) | | Get a singleton dummy object, one that works with no real data.
This can be used when the real data is not available.
Using the dummy can reduce checks for available data after an initial failure.
Port of ucase_getDummy().
|
getType | final public int getType(int c)(Code) | | NONE, LOWER, UPPER, TITLE |
getTypeOrIgnorable | final public int getTypeOrIgnorable(int c)(Code) | | same as getType(), or <0 if c is case-ignorable |
isCaseSensitive | final public boolean isCaseSensitive(int c)(Code) | | |
isSoftDotted | final public boolean isSoftDotted(int c)(Code) | | |
toFullLower | final public int toFullLower(int c, ContextIterator iter, StringBuffer out, ULocale locale, int[] locCache)(Code) | | Get the full lowercase mapping for c.
Parameters: c - Character to be mapped. Parameters: iter - Character iterator, used for context-sensitive mappings.See ContextIterator for details.If iter==null then a context-independent result is returned. Parameters: out - If the mapping result is a string, then it is appended to out. Parameters: locale - Locale ID for locale-dependent mappings. Parameters: locCache - Initialize locCache[0] to 0; may be used to cache the result of parsingthe locale ID for subsequent calls.Can be null. Output code point or string length, see MAX_STRING_LENGTH. See Also: ContextIterator See Also: UCaseProps.MAX_STRING_LENGTH |
tolower | final public int tolower(int c)(Code) | | |
totitle | final public int totitle(int c)(Code) | | |
toupper | final public int toupper(int c)(Code) | | |
|
|