UnicodeSet.Add Method

Definition

Overloads

Add(Int32, Int32)

Adds the specified range to this set if it is not already present.

Add(String)

Adds the specified multicharacter to this set if it is not already present.

Add(Int32)

Adds the specified character to this set if it is not already present.

Add(IIterable)

Add the contents of the collection (as strings) into this UnicodeSet.

Add(ICharSequence)

Adds the specified multicharacter to this set if it is not already present.

Add(Int32, Int32)

Adds the specified range to this set if it is not already present.

[Android.Runtime.Register("add", "(II)Landroid/icu/text/UnicodeSet;", "GetAdd_IIHandler", ApiSince=24)]
public virtual Android.Icu.Text.UnicodeSet? Add (int start, int end);
[<Android.Runtime.Register("add", "(II)Landroid/icu/text/UnicodeSet;", "GetAdd_IIHandler", ApiSince=24)>]
abstract member Add : int * int -> Android.Icu.Text.UnicodeSet
override this.Add : int * int -> Android.Icu.Text.UnicodeSet

Parameters

start
Int32

first character, inclusive, of range to be added to this set.

end
Int32

last character, inclusive, of range to be added to this set.

Returns

Attributes

Remarks

Adds the specified range to this set if it is not already present. If this set already contains the specified range, the call leaves this set unchanged. If start &gt; end then an empty range is added, leaving the set unchanged.

Java documentation for android.icu.text.UnicodeSet.add(int, 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

Add(String)

Adds the specified multicharacter to this set if it is not already present.

public Android.Icu.Text.UnicodeSet? Add (string? s);
member this.Add : string -> Android.Icu.Text.UnicodeSet

Parameters

s
String

the source string

Returns

this object, for chaining

Remarks

Adds the specified multicharacter to this set if it is not already present. If this set already contains the multicharacter, the call leaves this set unchanged. Thus "ch" =&gt; {"ch"}

Java documentation for android.icu.text.UnicodeSet.add(java.lang.CharSequence).

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

Add(Int32)

Adds the specified character to this set if it is not already present.

[Android.Runtime.Register("add", "(I)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)]
public Android.Icu.Text.UnicodeSet? Add (int c);
[<Android.Runtime.Register("add", "(I)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)>]
member this.Add : int -> Android.Icu.Text.UnicodeSet

Parameters

c
Int32

Returns

Attributes

Remarks

Adds the specified character to this set if it is not already present. If this set already contains the specified character, the call leaves this set unchanged.

Java documentation for android.icu.text.UnicodeSet.add(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

Add(IIterable)

Add the contents of the collection (as strings) into this UnicodeSet.

[Android.Runtime.Register("add", "(Ljava/lang/Iterable;)Landroid/icu/text/UnicodeSet;", "GetAdd_Ljava_lang_Iterable_Handler", ApiSince=24)]
public virtual Android.Icu.Text.UnicodeSet? Add (Java.Lang.IIterable? source);
[<Android.Runtime.Register("add", "(Ljava/lang/Iterable;)Landroid/icu/text/UnicodeSet;", "GetAdd_Ljava_lang_Iterable_Handler", ApiSince=24)>]
abstract member Add : Java.Lang.IIterable -> Android.Icu.Text.UnicodeSet
override this.Add : Java.Lang.IIterable -> Android.Icu.Text.UnicodeSet

Parameters

source
IIterable

the collection to add

Returns

a reference to this object

Attributes

Remarks

Add the contents of the collection (as strings) into this UnicodeSet. The collection must not contain null.

Java documentation for android.icu.text.UnicodeSet.add(java.lang.Iterable<?>).

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

Add(ICharSequence)

Adds the specified multicharacter to this set if it is not already present.

[Android.Runtime.Register("add", "(Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)]
public Android.Icu.Text.UnicodeSet? Add (Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("add", "(Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)>]
member this.Add : Java.Lang.ICharSequence -> Android.Icu.Text.UnicodeSet

Parameters

s
ICharSequence

the source string

Returns

this object, for chaining

Attributes

Remarks

Adds the specified multicharacter to this set if it is not already present. If this set already contains the multicharacter, the call leaves this set unchanged. Thus "ch" =&gt; {"ch"}

Java documentation for android.icu.text.UnicodeSet.add(java.lang.CharSequence).

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