public static final class CaseMap.Fold extends CaseMap
CaseMap.fold()
CaseMap.Fold, CaseMap.Lower, CaseMap.Title, CaseMap.Upper
internalOptions
Modifier and Type | Method and Description |
---|---|
String |
apply(CharSequence src)
Case-folds a string.
|
<A extends Appendable> |
apply(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 CaseMap
public 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_I
public String apply(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 Appendable> A apply(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.