public static final class CaseMap.Upper extends CaseMap
CaseMap.toUpper()CaseMap.Fold, CaseMap.Lower, CaseMap.Title, CaseMap.UpperinternalOptions| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(java.util.Locale locale,
java.lang.CharSequence src)
Uppercases a string.
|
<A extends java.lang.Appendable> |
apply(java.util.Locale locale,
java.lang.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 CaseMappublic java.lang.String apply(java.util.Locale locale,
java.lang.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 java.lang.Appendable> A apply(java.util.Locale locale,
java.lang.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.