Class CaseMap.Lower
java.lang.Object
com.ibm.icu.text.CaseMap
com.ibm.icu.text.CaseMap.Lower
- Enclosing class:
CaseMap
Lowercasing options and methods. Immutable.
- See Also:
- Status:
- Stable ICU 59.
-
Nested Class Summary
Nested classes/interfaces inherited from class CaseMap
CaseMap.Fold, CaseMap.Lower, CaseMap.Title, CaseMap.UpperModifier and TypeClassDescriptionstatic final classCase folding options and methods.static final classLowercasing options and methods.static final classTitlecasing options and methods.static final classUppercasing options and methods. -
Field Summary
Fields inherited from class CaseMap
internalOptionsModifier and TypeFieldDescriptionprotected intDeprecated.This API is ICU internal only. -
Method Summary
Modifier and TypeMethodDescriptionapply(Locale locale, CharSequence src) Lowercases a string.<A extends Appendable>
Aapply(Locale locale, CharSequence src, A dest, Edits edits) Lowercases a string and optionally records edits (seeomitUnchangedText()).Returns an instance that behaves like this one but omits unchanged text when case-mapping withEdits.Methods inherited from class CaseMap
fold, toLower, toTitle, toUpperModifier and TypeMethodDescriptionstatic CaseMap.Foldfold()static CaseMap.LowertoLower()static CaseMap.TitletoTitle()static CaseMap.UppertoUpper()
-
Method Details
-
omitUnchangedText
Returns an instance that behaves like this one but omits unchanged text when case-mapping withEdits.- Specified by:
omitUnchangedTextin classCaseMap- Returns:
- an options object with this option.
- Status:
- Stable ICU 59.
-
apply
Lowercases a string. Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.- Parameters:
locale- The locale ID. Can be null forLocale.getDefault(). (SeeULocale.toLocale().)src- The original string.- Returns:
- the result string.
- See Also:
- Status:
- Stable ICU 60.
-
apply
Lowercases a string and optionally records edits (seeomitUnchangedText()). Casing is locale-dependent and context-sensitive. The result may be longer or shorter than the original.- Parameters:
locale- The locale ID. Can be null forLocale.getDefault(). (SeeULocale.toLocale().)src- The original string.dest- A buffer for the result string. Must not be null.edits- Records edits for index mapping, working with styled text, and getting only changes (if any). This function calls edits.reset() first. edits can be null.- Returns:
- dest with the result string (or only changes) appended.
- See Also:
- Status:
- Stable ICU 59.
-