public static final class CaseMap.Lower extends CaseMap
CaseMap.toLower()
CaseMap.Fold, CaseMap.Lower, CaseMap.Title, CaseMap.Upper
internalOptions
Modifier and Type | Method and Description |
---|---|
String |
apply(Locale locale,
CharSequence src)
Lowercases a string.
|
<A extends Appendable> |
apply(Locale locale,
CharSequence src,
A dest,
Edits edits)
Lowercases a string and optionally records edits (see
omitUnchangedText() ). |
CaseMap.Lower |
omitUnchangedText()
Returns an instance that behaves like this one but
omits unchanged text when case-mapping with
Edits . |
public CaseMap.Lower omitUnchangedText()
Edits
.omitUnchangedText
in class CaseMap
public String apply(Locale locale, CharSequence src)
locale
- The locale ID. Can be null for Locale.getDefault()
.
(See ULocale.toLocale()
.)src
- The original string.UCharacter.toLowerCase(Locale, String)
public <A extends Appendable> A apply(Locale locale, CharSequence src, A dest, Edits edits)
omitUnchangedText()
).
Casing is locale-dependent and context-sensitive.
The result may be longer or shorter than the original.locale
- The locale ID. Can be null for Locale.getDefault()
.
(See ULocale.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.UCharacter.toLowerCase(Locale, String)
Copyright © 2016 Unicode, Inc. and others.