Partager via


Collator.Decomposition Property

Definition

Returns the decomposition mode of this Collator. -or- Sets the decomposition mode of this Collator.

public virtual Android.Icu.Text.CollatorDecompositionMode Decomposition { [Android.Runtime.Register("getDecomposition", "()I", "GetGetDecompositionHandler", ApiSince=24)] get; [Android.Runtime.Register("setDecomposition", "(I)V", "GetSetDecomposition_IHandler", ApiSince=24)] set; }
[<get: Android.Runtime.Register("getDecomposition", "()I", "GetGetDecompositionHandler", ApiSince=24)>]
[<set: Android.Runtime.Register("setDecomposition", "(I)V", "GetSetDecomposition_IHandler", ApiSince=24)>]
member this.Decomposition : Android.Icu.Text.CollatorDecompositionMode with get, set

Property Value

the decomposition mode

Attributes

Remarks

Property getter documentation:

Returns the decomposition mode of this Collator. The decomposition mode determines how Unicode composed characters are handled.

See the Collator class description for more details.

The base class method always returns #NO_DECOMPOSITION. Subclasses should override it if appropriate.

Java documentation for android.icu.text.Collator.getDecomposition().

Property setter documentation:

Sets the decomposition mode of this Collator. Setting this decomposition attribute with CANONICAL_DECOMPOSITION allows the Collator to handle un-normalized text properly, producing the same results as if the text were normalized. If NO_DECOMPOSITION is set, it is the user's responsibility to insure that all text is already in the appropriate form before a comparison or before getting a CollationKey. Adjusting decomposition mode allows the user to select between faster and more complete collation behavior.

Since a great many of the world's languages do not require text normalization, most locales set NO_DECOMPOSITION as the default decomposition mode.

The base class method does nothing. Subclasses should override it if appropriate.

See getDecomposition for a description of decomposition mode.

Java documentation for android.icu.text.Collator.setDecomposition(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to