UnicodeSet Constructors
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
UnicodeSet() |
Constructs an empty set. |
UnicodeSet(UnicodeSet) |
Constructs a copy of an existing set. |
UnicodeSet(Int32[]) |
Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, . |
UnicodeSet(String) |
Constructs a set from the given pattern. |
UnicodeSet(Int32, Int32) |
Constructs a set containing the given range. |
UnicodeSet(IntPtr, JniHandleOwnership) | |
UnicodeSet(String, UnicodeSetOptions) |
Constructs a set from the given pattern. |
UnicodeSet(String, Boolean) |
Constructs a set from the given pattern. |
UnicodeSet(String, ParsePosition, ISymbolTable) |
Constructs a set from the given pattern. |
UnicodeSet(String, ParsePosition, ISymbolTable, UnicodeSetOptions) |
Constructs a set from the given pattern. |
UnicodeSet()
Constructs an empty set.
[Android.Runtime.Register(".ctor", "()V", "", ApiSince=24)]
public UnicodeSet ();
- Attributes
Remarks
Constructs an empty set.
Java documentation for android.icu.text.UnicodeSet.UnicodeSet()
.
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
UnicodeSet(UnicodeSet)
Constructs a copy of an existing set.
[Android.Runtime.Register(".ctor", "(Landroid/icu/text/UnicodeSet;)V", "", ApiSince=24)]
public UnicodeSet (Android.Icu.Text.UnicodeSet? other);
[<Android.Runtime.Register(".ctor", "(Landroid/icu/text/UnicodeSet;)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : Android.Icu.Text.UnicodeSet -> Android.Icu.Text.UnicodeSet
Parameters
- other
- UnicodeSet
- Attributes
Remarks
Constructs a copy of an existing set.
Java documentation for android.icu.text.UnicodeSet.UnicodeSet(android.icu.text.UnicodeSet)
.
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
UnicodeSet(Int32[])
Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, .
[Android.Runtime.Register(".ctor", "([I)V", "", ApiSince=24)]
public UnicodeSet (params int[]? pairs);
[<Android.Runtime.Register(".ctor", "([I)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : int[] -> Android.Icu.Text.UnicodeSet
Parameters
- pairs
- Int32[]
pairs of character representing ranges
- Attributes
Remarks
Quickly constructs a set from a set of ranges <s0, e0, s1, e1, s2, e2, ..., sn, en>. There must be an even number of integers, and they must be all greater than zero, all less than or equal to Character.MAX_CODE_POINT. In each pair (..., si, ei, ...) it must be true that si <= ei Between adjacent pairs (...ei, sj...), it must be true that ei+1 < sj
Java documentation for android.icu.text.UnicodeSet.UnicodeSet(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
UnicodeSet(String)
Constructs a set from the given pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)]
public UnicodeSet (string? pattern);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : string -> Android.Icu.Text.UnicodeSet
Parameters
- pattern
- String
a string specifying what characters are in the set
- Attributes
Remarks
Constructs a set from the given pattern. See the class description for the syntax of the pattern language. Whitespace is ignored.
Java documentation for android.icu.text.UnicodeSet.UnicodeSet(java.lang.String)
.
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
UnicodeSet(Int32, Int32)
Constructs a set containing the given range.
[Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=24)]
public UnicodeSet (int start, int end);
[<Android.Runtime.Register(".ctor", "(II)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : int * int -> Android.Icu.Text.UnicodeSet
Parameters
- start
- Int32
first character, inclusive, of range
- end
- Int32
last character, inclusive, of range
- Attributes
Remarks
Constructs a set containing the given range. If end > start
then an empty set is created.
Java documentation for android.icu.text.UnicodeSet.UnicodeSet(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
UnicodeSet(IntPtr, JniHandleOwnership)
protected UnicodeSet (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Icu.Text.UnicodeSet : nativeint * Android.Runtime.JniHandleOwnership -> Android.Icu.Text.UnicodeSet
Parameters
- javaReference
-
IntPtr
nativeint
- transfer
- JniHandleOwnership
Remarks
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
UnicodeSet(String, UnicodeSetOptions)
Constructs a set from the given pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=24)]
public UnicodeSet (string? pattern, Android.Icu.Text.UnicodeSetOptions options);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : string * Android.Icu.Text.UnicodeSetOptions -> Android.Icu.Text.UnicodeSet
Parameters
- pattern
- String
a string specifying what characters are in the set
- options
- UnicodeSetOptions
a bitmask indicating which options to apply.
Valid options are #IGNORE_SPACE
and
at most one of #CASE_INSENSITIVE
, #ADD_CASE_MAPPINGS
,
#SIMPLE_CASE_INSENSITIVE
. These case options are mutually exclusive.
- Attributes
Remarks
Constructs a set from the given pattern. See the class description for the syntax of the pattern language.
Java documentation for android.icu.text.UnicodeSet.UnicodeSet(java.lang.String, 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
UnicodeSet(String, Boolean)
Constructs a set from the given pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "", ApiSince=24)]
public UnicodeSet (string? pattern, bool ignoreWhitespace);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Z)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : string * bool -> Android.Icu.Text.UnicodeSet
Parameters
- pattern
- String
a string specifying what characters are in the set
- ignoreWhitespace
- Boolean
if true, ignore Unicode Pattern_White_Space characters
- Attributes
Remarks
Constructs a set from the given pattern. See the class description for the syntax of the pattern language.
Java documentation for android.icu.text.UnicodeSet.UnicodeSet(java.lang.String, boolean)
.
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
UnicodeSet(String, ParsePosition, ISymbolTable)
Constructs a set from the given pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/ParsePosition;Landroid/icu/text/SymbolTable;)V", "", ApiSince=24)]
public UnicodeSet (string? pattern, Java.Text.ParsePosition? pos, Android.Icu.Text.ISymbolTable? symbols);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/ParsePosition;Landroid/icu/text/SymbolTable;)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : string * Java.Text.ParsePosition * Android.Icu.Text.ISymbolTable -> Android.Icu.Text.UnicodeSet
Parameters
- pattern
- String
a string specifying what characters are in the set
- pos
- ParsePosition
on input, the position in pattern at which to start parsing. On output, the position after the last character parsed.
- symbols
- ISymbolTable
a symbol table mapping variables to char[] arrays and chars to UnicodeSets
- Attributes
Remarks
Constructs a set from the given pattern. See the class description for the syntax of the pattern language.
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
UnicodeSet(String, ParsePosition, ISymbolTable, UnicodeSetOptions)
Constructs a set from the given pattern.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/ParsePosition;Landroid/icu/text/SymbolTable;I)V", "", ApiSince=24)]
public UnicodeSet (string? pattern, Java.Text.ParsePosition? pos, Android.Icu.Text.ISymbolTable? symbols, Android.Icu.Text.UnicodeSetOptions options);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/text/ParsePosition;Landroid/icu/text/SymbolTable;I)V", "", ApiSince=24)>]
new Android.Icu.Text.UnicodeSet : string * Java.Text.ParsePosition * Android.Icu.Text.ISymbolTable * Android.Icu.Text.UnicodeSetOptions -> Android.Icu.Text.UnicodeSet
Parameters
- pattern
- String
a string specifying what characters are in the set
- pos
- ParsePosition
on input, the position in pattern at which to start parsing. On output, the position after the last character parsed.
- symbols
- ISymbolTable
a symbol table mapping variables to char[] arrays and chars to UnicodeSets
- options
- UnicodeSetOptions
a bitmask indicating which options to apply.
Valid options are #IGNORE_SPACE
and
at most one of #CASE_INSENSITIVE
, #ADD_CASE_MAPPINGS
,
#SIMPLE_CASE_INSENSITIVE
. These case options are mutually exclusive.
- Attributes
Remarks
Constructs a set from the given pattern. See the class description for the syntax of the pattern language.
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.