Pattern.CaseInsensitive 字段

定义

注意

This constant will be removed in the future version. Use Java.Util.Regex.RegexOptions enum directly instead of this field.

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

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

字段值

Value = 2
属性

注解

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

不区分大小写的匹配在 Android 上是 Unicode 感知的。

还可以通过嵌入式标志表达式  (?i) 启用不区分大小写的匹配。

指定此标志可能会造成轻微的性能损失。

适用于 . 的 java.util.regex.Pattern.CASE_INSENSITIVEJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于