System::Char::IsSurrogate 方法

Char::IsSurrogate(char_t) method

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

static bool System::Char::IsSurrogate(char_t c)
ParameterType描述
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)
ParameterType描述
sconst String&一个字符串
索引int指定字符串中字符的索引

ReturnValue

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

另见