System::Char::ConvertToUtf32 方法

Char::ConvertToUtf32(char_t, char_t) method

将指定的 UTF-16 代理对转换为 UTF-32 代码单元。

static int System::Char::ConvertToUtf32(char_t highSurrogate, char_t lowSurrogate)
参数类型描述
highSurrogatechar_t要转换的 UTF-16 代理对的高位代理
lowSurrogatechar_t要转换的 UTF-16 代理对的低位代理

ReturnValue

转换后得到的 UTF-32 代码单元

另见

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

将字符串中指定位置的 UTF-16 编码字符或代理对的值转换为 UTF-32 代码单元。

static int System::Char::ConvertToUtf32(const String &s, int index)
参数类型描述
sconst String&包含字符或代理对的字符串
索引int指定字符串中字符或代理对的索引位置

ReturnValue

转换后得到的 UTF-32 代码单元

另见