Package com.ibm.icu.text
Class CaseMap
- java.lang.Object
-
- com.ibm.icu.text.CaseMap
-
- Direct Known Subclasses:
CaseMap.Fold
,CaseMap.Lower
,CaseMap.Title
,CaseMap.Upper
public abstract class CaseMap extends java.lang.Object
Low-level case mapping options and methods. Immutable. "Setters" return instances with the union of the current and new options set. This class is not intended for public subclassing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CaseMap.Fold
Case folding options and methods.static class
CaseMap.Lower
Lowercasing options and methods.static class
CaseMap.Title
Titlecasing options and methods.static class
CaseMap.Upper
Uppercasing options and methods.
-
Field Summary
Fields Modifier and Type Field Description protected int
internalOptions
Deprecated.This API is ICU internal only.
-
Constructor Summary
Constructors Modifier Constructor Description private
CaseMap(int opt)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CaseMap.Fold
fold()
private static int
getCaseLocale(java.util.Locale locale)
abstract CaseMap
omitUnchangedText()
Returns an instance that behaves like this one but omits unchanged text when case-mapping withEdits
.static CaseMap.Lower
toLower()
static CaseMap.Title
toTitle()
static CaseMap.Upper
toUpper()
-
-
-
Method Detail
-
getCaseLocale
private static int getCaseLocale(java.util.Locale locale)
-
toLower
public static CaseMap.Lower toLower()
- Returns:
- Lowercasing object with default options.
-
toUpper
public static CaseMap.Upper toUpper()
- Returns:
- Uppercasing object with default options.
-
toTitle
public static CaseMap.Title toTitle()
- Returns:
- Titlecasing object with default options.
-
fold
public static CaseMap.Fold fold()
- Returns:
- Case folding object with default options.
-
-