UCharacter.HasBinaryProperty 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| HasBinaryProperty(ICharSequence, Int32) |
[icu] 如果字符串的属性为 true,则返回 true。 |
| HasBinaryProperty(Int32, Int32) |
[icu] 检查代码点的二进制 Unicode 属性。 |
| HasBinaryProperty(String, Int32) |
[icu] 如果字符串的属性为 true,则返回 true。 |
HasBinaryProperty(ICharSequence, Int32)
[icu] 如果字符串的属性为 true,则返回 true。
[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
参数
要测试的字符串。
- property
- Int32
UProperty 选择器常量,标识要检查的二进制属性。 必须是BINARY_START<=哪个<BINARY_LIMIT。
返回
根据字符串的二进制 Unicode 属性值为 true 或 false。
如果 property 超出边界,或者 Unicode 版本根本没有属性的数据,则为 false。
- 特性
注解
[icu] 如果字符串的属性为 true,则返回 true。 与 #hasBinaryProperty(int, int) 字符串仅包含一个代码点相同。
大多数属性仅适用于单个代码点。 UTS #51 Unicode 表情符号 定义字符串的多个属性。
Java文档android.icu.lang.UCharacter.hasBinaryProperty(java.lang.CharSequence, int)。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
HasBinaryProperty(Int32, Int32)
[icu] 检查代码点的二进制 Unicode 属性。
[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
参数
- ch
- Int32
要测试的代码点。
- property
- Int32
android.icu.lang.UProperty 中的 selector 常量,用于标识要检查的二进制属性。
返回
根据 ch 的二进制 Unicode 属性值为 true 或 false。 如果属性超出边界,或者 Unicode 版本根本没有该属性的数据,或者对于此代码点没有数据,则为 false。
- 特性
注解
[icu] 检查代码点的二进制 Unicode 属性。
Unicode(尤其是在版本 3.2 中)定义了比 UnicodeData.txt中的原始集更多的属性。
此 API 旨在反映 Unicode 字符数据库(UCD)和 Unicode 技术报告(UTR)中定义的 Unicode 属性。
有关属性的详细信息,请参阅 http://www.unicode.org/。
有关 Unicode 属性的名称,请参阅 UCD 文件 PropertyAliases.txt。
此 API 不检查代码点的有效性。
重要说明:如果 ICU 是使用低于 3.2 的 Unicode 版本的 UCD 文件生成的,则标记为“new”的属性未完全可用。
Java文档android.icu.lang.UCharacter.hasBinaryProperty(int, int)。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
HasBinaryProperty(String, Int32)
[icu] 如果字符串的属性为 true,则返回 true。
public static bool HasBinaryProperty(string? s, int property);
static member HasBinaryProperty : string * int -> bool
参数
- s
- String
要测试的字符串。
- property
- Int32
UProperty 选择器常量,标识要检查的二进制属性。 必须是BINARY_START<=哪个<BINARY_LIMIT。
返回
根据字符串的二进制 Unicode 属性值为 true 或 false。
如果 property 超出边界,或者 Unicode 版本根本没有属性的数据,则为 false。
注解
[icu] 如果字符串的属性为 true,则返回 true。 与 #hasBinaryProperty(int, int) 字符串仅包含一个代码点相同。
大多数属性仅适用于单个代码点。 UTS #51 Unicode 表情符号 定义字符串的多个属性。
Java文档android.icu.lang.UCharacter.hasBinaryProperty(java.lang.CharSequence, int)。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。