System::Char::IsSurrogate 方法
Char::IsSurrogate(char_t) method
确定指定字符是否为 UTF-16 代理代码单元。
static bool System::Char::IsSurrogate(char_t c)
| 参数 | 类型 | 描述 |
|---|---|---|
| c | char_t | 一个字符 |
ReturnValue
如果指定字符是 UTF-16 代理代码单元,则为 True;否则为 False
另见
- Class Char
- Namespace System
- Library Aspose.Font for C++
Char::IsSurrogate(const String&, int) method
确定指定字符串中指定索引处的字符是否为 UTF-16 代理代码单元。
static bool System::Char::IsSurrogate(const String &s, int index)
| 参数 | 类型 | 描述 |
|---|---|---|
| s | const String& | 字符串 |
| 索引 | int | 指定字符串中字符的索引 |
ReturnValue
如果指定索引处的字符是 UTF-16 代理代码单元,则为 True;否则为 False
另见
- Class String
- Class Char
- Namespace System
- Library Aspose.Font for C++