Share via


UnicodeSet.CloseOver(Int32) Method

Definition

Close this set over the given attribute.

[Android.Runtime.Register("closeOver", "(I)Landroid/icu/text/UnicodeSet;", "GetCloseOver_IHandler", ApiSince=24)]
public virtual Android.Icu.Text.UnicodeSet? CloseOver (int attribute);
[<Android.Runtime.Register("closeOver", "(I)Landroid/icu/text/UnicodeSet;", "GetCloseOver_IHandler", ApiSince=24)>]
abstract member CloseOver : int -> Android.Icu.Text.UnicodeSet
override this.CloseOver : int -> Android.Icu.Text.UnicodeSet

Parameters

attribute
Int32

bitmask for attributes to close over. Valid options: At most one of #CASE_INSENSITIVE, #ADD_CASE_MAPPINGS, #SIMPLE_CASE_INSENSITIVE. These case options are mutually exclusive. Unrelated options bits are ignored.

Returns

a reference to this set.

Attributes

Remarks

Close this set over the given attribute. For the attribute #CASE_INSENSITIVE, the result is to modify this set so that:

<ol> <li>For each character or string 'a' in this set, all strings 'b' such that foldCase(a) == foldCase(b) are added to this set. (For most 'a' that are single characters, 'b' will have b.length() == 1.)

<li>For each string 'e' in the resulting set, if e != foldCase(e), 'e' will be removed. </ol>

Example: [aq\u00DF{Bc}{bC}{Fi}] =&gt; [aAqQ\u00DF\uFB01{ss}{bc}{fi}]

(Here foldCase(x) refers to the operation UCharacter.foldCase(x, true), and a == b actually denotes a.equals(b), not pointer comparison.)

Java documentation for android.icu.text.UnicodeSet.closeOver(int).

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.

Applies to