public static final class CaseMap.Upper extends CaseMap
CaseMap.toUpper()
CaseMap.Fold, CaseMap.Lower, CaseMap.Title, CaseMap.Upper
internalOptions
Modifier and Type | Method and Description |
---|---|
String |
apply(Locale locale,
CharSequence src)
Uppercases a string.
|
<A extends Appendable> |
apply(Locale locale,
CharSequence src,
A dest,
Edits edits)
Uppercases a string and optionally records edits (see
omitUnchangedText() ). |
CaseMap.Upper |
omitUnchangedText()
Returns an instance that behaves like this one but
omits unchanged text when case-mapping with
Edits . |
public CaseMap.Upper 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.toUpperCase(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.toUpperCase(Locale, String)
Copyright © 2016 Unicode, Inc. and others.