public static final class CaseMap.Fold extends CaseMap
CaseMap.fold()CaseMap.Fold, CaseMap.Lower, CaseMap.Title, CaseMap.UpperinternalOptions| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(java.lang.CharSequence src)
Case-folds a string.
|
<A extends java.lang.Appendable> |
apply(java.lang.CharSequence src,
A dest,
Edits edits)
Case-folds a string and optionally records edits (see
omitUnchangedText()). |
CaseMap.Fold |
omitUnchangedText()
Returns an instance that behaves like this one but
omits unchanged text when case-mapping with
Edits. |
CaseMap.Fold |
turkic()
Returns an instance that behaves like this one but
handles dotted I and dotless i appropriately for Turkic languages (tr, az).
|
public CaseMap.Fold omitUnchangedText()
Edits.omitUnchangedText in class CaseMappublic CaseMap.Fold turkic()
Uses the Unicode CaseFolding.txt mappings marked with 'T' that are to be excluded for default mappings and included for the Turkic-specific mappings.
UCharacter.FOLD_CASE_EXCLUDE_SPECIAL_Ipublic java.lang.String apply(java.lang.CharSequence src)
Case-folding is locale-independent and not context-sensitive, but there is an option for whether to include or exclude mappings for dotted I and dotless i that are marked with 'T' in CaseFolding.txt.
src - The original string.UCharacter.foldCase(String, int)public <A extends java.lang.Appendable> A apply(java.lang.CharSequence src,
A dest,
Edits edits)
omitUnchangedText()).
The result may be longer or shorter than the original.
Case-folding is locale-independent and not context-sensitive, but there is an option for whether to include or exclude mappings for dotted I and dotless i that are marked with 'T' in CaseFolding.txt.
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.foldCase(String, int)Copyright © 2016 Unicode, Inc. and others.