Stay organized with collections
Save and categorize content based on your preferences.
Mode
class Mode
Constants for normalization modes. For details about standard Unicode normalization forms and about the algorithms which are also used with custom mapping tables see https://www.unicode.org/reports/tr15/
Summary
Enum values |
Decomposition followed by composition.
|
Compose only contiguously.
|
Map, and reorder canonically.
|
"Fast C or D" form.
|
Enum values
COMPOSE
enum val COMPOSE : Normalizer2.Mode
Decomposition followed by composition. Same as standard NFC when using an "nfc" instance. Same as standard NFKC when using an "nfkc" instance. For details about standard Unicode normalization forms see https://www.unicode.org/reports/tr15/
COMPOSE_CONTIGUOUS
enum val COMPOSE_CONTIGUOUS : Normalizer2.Mode
Compose only contiguously. Also known as "FCC" or "Fast C Contiguous". The result will often but not always be in NFC. The result will conform to FCD which is useful for processing.
Not a standard Unicode normalization form.
For details see http://www.unicode.org/notes/tn5/#FCC
DECOMPOSE
enum val DECOMPOSE : Normalizer2.Mode
Map, and reorder canonically. Same as standard NFD when using an "nfc" instance. Same as standard NFKD when using an "nfkc" instance. For details about standard Unicode normalization forms see https://www.unicode.org/reports/tr15/
FCD
enum val FCD : Normalizer2.Mode
"Fast C or D" form. If a string is in this form, then further decomposition without reordering would yield the same form as DECOMPOSE. Text in "Fast C or D" form can be processed efficiently with data tables that are "canonically closed", that is, that provide equivalent data for equivalent text, without having to be fully normalized.
Not a standard Unicode normalization form.
Not a unique form: Different FCD strings can be canonically equivalent.
For details see http://www.unicode.org/notes/tn5/#FCD
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Normalizer2.Mode\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMode\n====\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/icu/text/Normalizer2.Mode \"View this page in Java\") \n\n```\nclass Mode\n```\n\n|---|---|----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.icu.text.Normalizer2.Mode](#)\\\u003e ||\n| | ↳ | [android.icu.text.Normalizer2.Mode](#) |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Normalizer2.Mode.COMPOSE](#ENUM_VALUE:COMPOSE), [Normalizer2.Mode.COMPOSE_CONTIGUOUS](#ENUM_VALUE:COMPOSE_CONTIGUOUS), [Normalizer2.Mode.DECOMPOSE](#ENUM_VALUE:DECOMPOSE), [Normalizer2.Mode.FCD](#ENUM_VALUE:FCD) |-----------------------------------------------------------------------|----------------------------------------| | [Normalizer2.Mode.COMPOSE](#ENUM_VALUE:COMPOSE) | Decomposition followed by composition. | | [Normalizer2.Mode.COMPOSE_CONTIGUOUS](#ENUM_VALUE:COMPOSE_CONTIGUOUS) | Compose only contiguously. | | [Normalizer2.Mode.DECOMPOSE](#ENUM_VALUE:DECOMPOSE) | Map, and reorder canonically. | | [Normalizer2.Mode.FCD](#ENUM_VALUE:FCD) | \"Fast C or D\" form. | |\n\nConstants for normalization modes. For details about standard Unicode normalization forms and about the algorithms which are also used with custom mapping tables see https://www.unicode.org/reports/tr15/\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------------------------------------------|---|\n| [COMPOSE](#ENUM_VALUE:COMPOSE) Decomposition followed by composition. |\n| [COMPOSE_CONTIGUOUS](#ENUM_VALUE:COMPOSE_CONTIGUOUS) Compose only contiguously. |\n| [DECOMPOSE](#ENUM_VALUE:DECOMPOSE) Map, and reorder canonically. |\n| [FCD](#ENUM_VALUE:FCD) \"Fast C or D\" form. |\n\nEnum values\n-----------\n\n### COMPOSE\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val COMPOSE : Normalizer2.Mode\n```\n\nDecomposition followed by composition. Same as standard NFC when using an \"nfc\" instance. Same as standard NFKC when using an \"nfkc\" instance. For details about standard Unicode normalization forms see https://www.unicode.org/reports/tr15/ \n\n### COMPOSE_CONTIGUOUS\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val COMPOSE_CONTIGUOUS : Normalizer2.Mode\n```\n\nCompose only contiguously. Also known as \"FCC\" or \"Fast C Contiguous\". The result will often but not always be in NFC. The result will conform to FCD which is useful for processing. \nNot a standard Unicode normalization form. \nFor details see http://www.unicode.org/notes/tn5/#FCC \n\n### DECOMPOSE\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val DECOMPOSE : Normalizer2.Mode\n```\n\nMap, and reorder canonically. Same as standard NFD when using an \"nfc\" instance. Same as standard NFKD when using an \"nfkc\" instance. For details about standard Unicode normalization forms see https://www.unicode.org/reports/tr15/ \n\n### FCD\n\nAdded in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val FCD : Normalizer2.Mode\n```\n\n\"Fast C or D\" form. If a string is in this form, then further decomposition *without reordering* would yield the same form as DECOMPOSE. Text in \"Fast C or D\" form can be processed efficiently with data tables that are \"canonically closed\", that is, that provide equivalent data for equivalent text, without having to be fully normalized. \nNot a standard Unicode normalization form. \nNot a unique form: Different FCD strings can be canonically equivalent. \nFor details see http://www.unicode.org/notes/tn5/#FCD"]]