共用方式為


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 屬性授權中所述的詞彙使用。

適用於