UnicodeSet.Complement Method
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.
Overloads
Complement(Int32, Int32) |
Complements the specified range in this set. |
Complement(String) |
Complement the specified string in this set. |
Complement(Int32) |
Complements the specified character in this set. |
Complement() |
This is equivalent to
|
Complement(ICharSequence) |
Complement the specified string in this set. |
Complement(Int32, Int32)
Complements the specified range in this set.
[Android.Runtime.Register("complement", "(II)Landroid/icu/text/UnicodeSet;", "GetComplement_IIHandler", ApiSince=24)]
public virtual Android.Icu.Text.UnicodeSet? Complement (int start, int end);
[<Android.Runtime.Register("complement", "(II)Landroid/icu/text/UnicodeSet;", "GetComplement_IIHandler", ApiSince=24)>]
abstract member Complement : int * int -> Android.Icu.Text.UnicodeSet
override this.Complement : int * int -> Android.Icu.Text.UnicodeSet
Parameters
- start
- Int32
first character, inclusive, of range
- end
- Int32
last character, inclusive, of range
Returns
- Attributes
Remarks
Complements the specified range in this set. Any character in the range will be removed if it is in this set, or will be added if it is not in this set. If start > end
then an empty range is complemented, leaving the set unchanged.
Java documentation for android.icu.text.UnicodeSet.complement(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
Complement(String)
Complement the specified string in this set.
public Android.Icu.Text.UnicodeSet? Complement (string? s);
member this.Complement : string -> Android.Icu.Text.UnicodeSet
Parameters
- s
- String
the string to complement
Returns
this object, for chaining
Remarks
Complement the specified string in this set. The set will not contain the specified string once the call returns.
Java documentation for android.icu.text.UnicodeSet.complement(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
Complement(Int32)
Complements the specified character in this set.
[Android.Runtime.Register("complement", "(I)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)]
public Android.Icu.Text.UnicodeSet? Complement (int c);
[<Android.Runtime.Register("complement", "(I)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)>]
member this.Complement : int -> Android.Icu.Text.UnicodeSet
Parameters
- c
- Int32
Returns
- Attributes
Remarks
Complements the specified character in this set. The character will be removed if it is in this set, or will be added if it is not in this set.
Java documentation for android.icu.text.UnicodeSet.complement(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
Complement()
This is equivalent to
complement(MIN_VALUE, MAX_VALUE)
.
[Android.Runtime.Register("complement", "()Landroid/icu/text/UnicodeSet;", "GetComplementHandler", ApiSince=24)]
public virtual Android.Icu.Text.UnicodeSet? Complement ();
[<Android.Runtime.Register("complement", "()Landroid/icu/text/UnicodeSet;", "GetComplementHandler", ApiSince=24)>]
abstract member Complement : unit -> Android.Icu.Text.UnicodeSet
override this.Complement : unit -> Android.Icu.Text.UnicodeSet
Returns
- Attributes
Remarks
This is equivalent to complement(MIN_VALUE, MAX_VALUE)
.
<strong>Note:</strong> This performs a symmetric difference with all code points <em>and thus retains all multicharacter strings</em>. In order to achieve a “code point complement” (all code points minus this set), the easiest is to .#complement()
.#removeAllStrings()
.
Java documentation for android.icu.text.UnicodeSet.complement()
.
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
Complement(ICharSequence)
Complement the specified string in this set.
[Android.Runtime.Register("complement", "(Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)]
public Android.Icu.Text.UnicodeSet? Complement (Java.Lang.ICharSequence? s);
[<Android.Runtime.Register("complement", "(Ljava/lang/CharSequence;)Landroid/icu/text/UnicodeSet;", "", ApiSince=24)>]
member this.Complement : Java.Lang.ICharSequence -> Android.Icu.Text.UnicodeSet
Parameters
the string to complement
Returns
this object, for chaining
- Attributes
Remarks
Complement the specified string in this set. The set will not contain the specified string once the call returns.
Java documentation for android.icu.text.UnicodeSet.complement(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.