UCharacter.HasBinaryProperty 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
HasBinaryProperty(ICharSequence, Int32) |
<strong>[icu]</strong> Returns true if the property is true for the string. |
HasBinaryProperty(Int32, Int32) |
<strong>[icu]</strong> Check a binary Unicode property for a code point. |
HasBinaryProperty(String, Int32) |
<strong>[icu]</strong> Returns true if the property is true for the string. |
HasBinaryProperty(ICharSequence, Int32)
<strong>[icu]</strong> Returns true if the property is true for the string.
[Android.Runtime.Register("hasBinaryProperty", "(Ljava/lang/CharSequence;I)Z", "", ApiSince=34)]
public static bool HasBinaryProperty (Java.Lang.ICharSequence? s, int property);
[<Android.Runtime.Register("hasBinaryProperty", "(Ljava/lang/CharSequence;I)Z", "", ApiSince=34)>]
static member HasBinaryProperty : Java.Lang.ICharSequence * int -> bool
Parameters
String to test.
- property
- Int32
UProperty selector constant, identifies which binary property to check. Must be BINARY_START<=which<BINARY_LIMIT.
Returns
true or false according to the binary Unicode property value for the string.
Also false if property
is out of bounds or if the Unicode version
does not have data for the property at all.
- Attributes
Remarks
<strong>[icu]</strong> Returns true if the property is true for the string. Same as #hasBinaryProperty(int, int)
if the string contains exactly one code point.
Most properties apply only to single code points. UTS #51 Unicode Emoji defines several properties of strings.
Java documentation for android.icu.lang.UCharacter.hasBinaryProperty(java.lang.CharSequence, 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
HasBinaryProperty(Int32, Int32)
<strong>[icu]</strong> Check a binary Unicode property for a code point.
[Android.Runtime.Register("hasBinaryProperty", "(II)Z", "", ApiSince=24)]
public static bool HasBinaryProperty (int ch, int property);
[<Android.Runtime.Register("hasBinaryProperty", "(II)Z", "", ApiSince=24)>]
static member HasBinaryProperty : int * int -> bool
Parameters
- ch
- Int32
code point to test.
- property
- Int32
selector constant from android.icu.lang.UProperty, identifies which binary property to check.
Returns
true or false according to the binary Unicode property value for ch. Also false if property is out of bounds or if the Unicode version does not have data for the property at all, or not for this code point.
- Attributes
Remarks
<strong>[icu]</strong> Check a binary Unicode property for a code point.
Unicode, especially in version 3.2, defines many more properties than the original set in UnicodeData.txt.
This API is intended to reflect Unicode properties as defined in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
For details about the properties see http://www.unicode.org/.
For names of Unicode properties see the UCD file PropertyAliases.txt.
This API does not check the validity of the codepoint.
Important: If ICU is built with UCD files from Unicode versions below 3.2, then properties marked with "new" are not or not fully available.
Java documentation for android.icu.lang.UCharacter.hasBinaryProperty(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
HasBinaryProperty(String, Int32)
<strong>[icu]</strong> Returns true if the property is true for the string.
public static bool HasBinaryProperty (string? s, int property);
static member HasBinaryProperty : string * int -> bool
Parameters
- s
- String
String to test.
- property
- Int32
UProperty selector constant, identifies which binary property to check. Must be BINARY_START<=which<BINARY_LIMIT.
Returns
true or false according to the binary Unicode property value for the string.
Also false if property
is out of bounds or if the Unicode version
does not have data for the property at all.
Remarks
<strong>[icu]</strong> Returns true if the property is true for the string. Same as #hasBinaryProperty(int, int)
if the string contains exactly one code point.
Most properties apply only to single code points. UTS #51 Unicode Emoji defines several properties of strings.
Java documentation for android.icu.lang.UCharacter.hasBinaryProperty(java.lang.CharSequence, 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.