UnicodeSet.CaseInsensitive Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
This constant will be removed in the future version. Use Android.Icu.Text.UnicodeSetOptions enum directly instead of this field.
Enable case insensitive matching.
[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
Field Value
Value = 2Implements
- Attributes
Remarks
Enable case insensitive matching. E.g., "[ab]" with this flag will match 'a', 'A', 'b', and 'B'. "[^ab]" with this flag will match all except 'a', 'A', 'b', and 'B'. This performs a full closure over case mappings, e.g. 'ſ' (U+017F long s) for 's'.
This value is an options bit set value for some constructors, applyPattern(), and closeOver(). It can be ORed together with other, unrelated options.
The resulting set is a superset of the input for the code points but not for the strings. It performs a case mapping closure of the code points and adds full case folding strings for the code points, and reduces strings of the original set to their full case folding equivalents.
This is designed for case-insensitive matches, for example in regular expressions. The full code point case closure allows checking of an input character directly against the closure set. Strings are matched by comparing the case-folded form from the closure set with an incremental case folding of the string in question.
The closure set will also contain single code points if the original set contained case-equivalent strings (like U+00DF for "ss" or "Ss" etc.). This is not necessary (that is, redundant) for the above matching method but results in the same closure sets regardless of whether the original set contained the code point or a string.
Java documentation for android.icu.text.UnicodeSet.CASE_INSENSITIVE
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.