System::Char::IsControl 方法

Char::IsControl(char_t) method

确定指定字符是否被归类为 Unicode 控制字符。

static bool System::Char::IsControl(char_t c)
ParameterType描述
cchar_t要测试的字符

ReturnValue

如果指定字符是 Unicode 控制字符,则返回 true;否则返回 false

另见

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

确定在指定字符缓冲区中指定索引处的字符是否被归类为 Unicode 控制字符。

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

ReturnValue

如果指定索引处的字符是 Unicode 控制字符,则返回 true;否则返回 false

另见