System::Char::IsSurrogate 方法

Char::IsSurrogate(char_t) method

确定指定字符是否为 UTF-16 代理代码单元。

static bool System::Char::IsSurrogate(char_t c)
参数类型描述
cchar_t一个字符

ReturnValue

如果指定字符是 UTF-16 代理代码单元,则为 True;否则为 False

另见

Char::IsSurrogate(const String&, int) method

确定指定字符串中指定索引处的字符是否为 UTF-16 代理代码单元。

static bool System::Char::IsSurrogate(const String &s, int index)
参数类型描述
sconst String&字符串
索引int指定字符串中字符的索引

ReturnValue

如果指定索引处的字符是 UTF-16 代理代码单元,则为 True;否则为 False

另见