Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/icu/text/CaseMap.Fold#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/icu/text/CaseMap.Fold#inhmethods)

# CaseMap.Fold

*** ** * ** ***


`
public
static
final

class
CaseMap.Fold
`


`


`

`

extends https://developer.android.com/reference/android/icu/text/CaseMap


`

`


`

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) |||
| ↳ | [android.icu.text.CaseMap](https://developer.android.com/reference/android/icu/text/CaseMap) ||
|   | ↳ | android.icu.text.CaseMap.Fold |

<br />

*** ** * ** ***

Case folding options and methods. Immutable.
**See also:**

- `https://developer.android.com/reference/android/icu/text/CaseMap#fold()`

## Summary

| ### Public methods ||
|---|---|
| ` <A extends https://developer.android.com/reference/java/lang/Appendable> A` | ` https://developer.android.com/reference/android/icu/text/CaseMap.Fold#apply(java.lang.CharSequence,%20A,%20android.icu.text.Edits)(https://developer.android.com/reference/java/lang/CharSequence src, A dest, https://developer.android.com/reference/android/icu/text/Edits edits) ` Case-folds a string and optionally records edits (see `https://developer.android.com/reference/android/icu/text/CaseMap.Fold#omitUnchangedText()`). |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/icu/text/CaseMap.Fold#apply(java.lang.CharSequence)(https://developer.android.com/reference/java/lang/CharSequence src) ` Case-folds a string. |
| ` https://developer.android.com/reference/android/icu/text/CaseMap.Fold` | ` https://developer.android.com/reference/android/icu/text/CaseMap.Fold#omitUnchangedText()() ` Returns an instance that behaves like this one but omits unchanged text when case-mapping with `https://developer.android.com/reference/android/icu/text/Edits`. |
| ` https://developer.android.com/reference/android/icu/text/CaseMap.Fold` | ` https://developer.android.com/reference/android/icu/text/CaseMap.Fold#turkic()() ` Returns an instance that behaves like this one but handles dotted I and dotless i appropriately for Turkic languages (tr, az). |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/android/icu/text/CaseMap ` |---|---| | ` static https://developer.android.com/reference/android/icu/text/CaseMap.Fold` | ` https://developer.android.com/reference/android/icu/text/CaseMap#fold()() ` | | ` abstract https://developer.android.com/reference/android/icu/text/CaseMap` | ` https://developer.android.com/reference/android/icu/text/CaseMap#omitUnchangedText()() ` Returns an instance that behaves like this one but omits unchanged text when case-mapping with `https://developer.android.com/reference/android/icu/text/Edits`. | | ` static https://developer.android.com/reference/android/icu/text/CaseMap.Lower` | ` https://developer.android.com/reference/android/icu/text/CaseMap#toLower()() ` | | ` static https://developer.android.com/reference/android/icu/text/CaseMap.Title` | ` https://developer.android.com/reference/android/icu/text/CaseMap#toTitle()() ` | | ` static https://developer.android.com/reference/android/icu/text/CaseMap.Upper` | ` https://developer.android.com/reference/android/icu/text/CaseMap#toUpper()() ` | ||
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Public methods

### apply

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public A apply (CharSequence src, 
                A dest, 
                Edits edits)
```

Case-folds a string and optionally records edits (see `https://developer.android.com/reference/android/icu/text/CaseMap.Fold#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.

<br />

| Parameters ||
|---|---|
| `src` | `CharSequence`: The original string. <br /> |
| `dest` | `A`: A buffer for the result string. Must not be null. <br /> |
| `edits` | `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. <br /> |

| Returns ||
|---|---|
| `A` | dest with the result string (or only changes) appended. <br /> |

**See also:**

- `https://developer.android.com/reference/android/icu/lang/UCharacter#foldCase(java.lang.String,%20int)`

### apply

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String apply (CharSequence src)
```

Case-folds a string.
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.

<br />

| Parameters ||
|---|---|
| `src` | `CharSequence`: The original string. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | the result string. <br /> |

**See also:**

- `https://developer.android.com/reference/android/icu/lang/UCharacter#foldCase(java.lang.String,%20int)`

### omitUnchangedText

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CaseMap.Fold omitUnchangedText ()
```

Returns an instance that behaves like this one but
omits unchanged text when case-mapping with `https://developer.android.com/reference/android/icu/text/Edits`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/text/CaseMap.Fold` | an options object with this option. <br /> |

### turkic

Added in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public CaseMap.Fold turkic ()
```

Returns an instance that behaves like this one but
handles dotted I and dotless i appropriately for Turkic languages (tr, az).

Uses the Unicode CaseFolding.txt mappings marked with 'T' that
are to be excluded for default mappings and
included for the Turkic-specific mappings.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/icu/text/CaseMap.Fold` | an options object with this option. <br /> |

**See also:**

- `https://developer.android.com/reference/android/icu/lang/UCharacter#FOLD_CASE_EXCLUDE_SPECIAL_I`