Share via


RuleBasedCollator.CaseLevel Property

Definition

Checks if case level is set to true. -or- When case level is set to true, an additional weight is formed between the SECONDARY and TERTIARY weight, known as the case level.

public bool CaseLevel { [Android.Runtime.Register("isCaseLevel", "()Z", "", ApiSince=24)] get; [Android.Runtime.Register("setCaseLevel", "(Z)V", "", ApiSince=24)] set; }
[<get: Android.Runtime.Register("isCaseLevel", "()Z", "", ApiSince=24)>]
[<set: Android.Runtime.Register("setCaseLevel", "(Z)V", "", ApiSince=24)>]
member this.CaseLevel : bool with get, set

Property Value

the case level mode

Attributes

Remarks

Property getter documentation:

Checks if case level is set to true. See setCaseLevel(boolean) for details.

Java documentation for android.icu.text.RuleBasedCollator.isCaseLevel().

Property setter documentation:

When case level is set to true, an additional weight is formed between the SECONDARY and TERTIARY weight, known as the case level. The case level is used to distinguish large and small Japanese Kana characters. Case level could also be used in other situations. For example to distinguish certain Pinyin characters. If the value is false, it means the case level is not generated. The contents of the case level are affected by the case first mode. A simple way to ignore accent differences in a string is to set the strength to PRIMARY and enable case level. The default setting in a Collator object depends on the locale data loaded from the resources.

See the section on case level for more information.

Java documentation for android.icu.text.RuleBasedCollator.setCaseLevel(boolean).

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