System::Char::IsHighSurrogate 方法

Char::IsHighSurrogate(char_t) method

确定指定字符是否为高代理。

static bool System::Char::IsHighSurrogate(char_t c)
参数类型描述
cchar_t要测试的字符

ReturnValue

如果指定字符是高位代理项,则为 true;否则为 false

另见

Char::IsHighSurrogate(const char_t *, int) method

确定指定字符缓冲区中指定索引处的字符是否为高代理。

static bool System::Char::IsHighSurrogate(const char_t *str, int idx)
参数类型描述
strconst char_t *指向字符缓冲区起始位置的指针
idxint指定缓冲区中要测试的字符的零基索引

ReturnValue

如果指定索引处的字符是高位代理项,则为 true;否则为 false

另见

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

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

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

ReturnValue

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

另见