語言

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 文件 java.util.regex.Pattern.CASE_INSENSITIVE

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於