Collator.Decomposition 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回此排序器的分解模式。 - 或 - 设置此排序器分解模式。
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
属性值
分解模式
- 特性
注解
属性 getter 文档:
返回此排序器的分解模式。 分解模式确定 Unicode 组合字符的处理方式。
有关更多详细信息,请参阅 Collator 类说明。
基类方法始终返回 #NO_DECOMPOSITION。 如果适用,子类应重写它。
Java文档android.icu.text.Collator.getDecomposition()。
属性 setter 文档:
设置此排序器分解模式。 使用 CANONICAL_DECOMPOSITION 设置此分解属性可让 Collator 正确处理非规范化文本,从而生成与规范化文本相同的结果。 如果设置了NO_DECOMPOSITION,则用户有责任确保在比较之前或获取 CollationKey 之前,所有文本都已采用适当的格式。 通过调整分解模式,用户可以在更快、更完整的排序规则行为之间进行选择。
由于世界上许多语言不需要文本规范化,因此大多数区域设置将NO_DECOMPOSITION设置为默认分解模式。
基类方法不执行任何操作。 如果适用,子类应重写它。
有关分解模式的说明,请参阅 getDecomposition。
Java文档android.icu.text.Collator.setDecomposition(int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。