语言

UnicodeSet.CaseInsensitive 字段

定义

注意

This constant will be removed in the future version. Use Android.Icu.Text.UnicodeSetOptions enum directly instead of this field.

启用不区分大小写的匹配。

[Android.Runtime.Register("CASE_INSENSITIVE", ApiSince=24)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Icu.Text.UnicodeSetOptions enum directly instead of this field.", true)]
public const Android.Icu.Text.UnicodeSetOptions CaseInsensitive = 2;
[<Android.Runtime.Register("CASE_INSENSITIVE", ApiSince=24)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Icu.Text.UnicodeSetOptions enum directly instead of this field.", true)>]
val mutable CaseInsensitive : Android.Icu.Text.UnicodeSetOptions

字段值

Value = 2

实现

Java.Lang.IIterable._members Java.Lang.IIterable.cb_forEach_ForEach_Ljava_util_function_Consumer__V Java.Lang.IIterable.cb_spliterator_Spliterator_Ljava_util_Spliterator_
特性

注解

启用不区分大小写的匹配。 例如,具有此标志的“[ab]”将与“a”、“A”、“b”和“B”匹配。 具有此标志的“[^ab]”将匹配除“a”、“A”、“b”和“B”之外的所有项。 这会对事例映射执行完全关闭,例如“s”(U+017F long s)作为's'。

此值是某些构造函数、applyPattern(和 closeOver)的选项位集值。 它可以与其他不相关的选项一起使用 ORed。

生成的集是代码点的输入的超集,而不是字符串的输入集。 它执行代码点的事例映射关闭,并为代码点添加完整大小写折叠字符串,并将原始集的字符串减少到其完整大小写折叠等效项。

这是针对不区分大小写的匹配而设计的,例如在正则表达式中。 完整代码点大小写关闭允许直接根据关闭集检查输入字符。 字符串通过比较闭包集中的事例折叠形式与有问题的字符串的增量大小写折叠来匹配。

如果原始集包含等效大小写字符串(如“ss”或“Ss”等的 U+00DF),则关闭集还将包含单个码位。 这不需要上述匹配方法(即冗余),但无论原始集包含代码点还是字符串,都会导致相同的闭包集。

Java文档android.icu.text.UnicodeSet.CASE_INSENSITIVE。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于