System::Text::UnicodeEncoding 类

UnicodeEncoding class

Unicode 编码。此类的对象只能使用 System::MakeObject() 函数分配。切勿在栈上或使用 operator new 创建此类型的实例,因为这会导致运行时错误和/或断言故障。始终将此类包装到 System::SmartPtr 指针中,并使用该指针将其作为参数传递给函数。

class UnicodeEncoding : public System::Text::ICUEncoding

方法

方法描述
Clone() override克隆编码对象。
Equals(SharedPtr<Object>) override比较编码。
GetHashCode() const override对编码进行哈希。
GetMaxByteCount(int) override获取对指定字符数进行编码所需的最大字节数。
GetMaxCharCount(int) override获取对指定字节数进行解码所需的最大字符数。
GetPreamble() override返回表示编码的字节序列(例如 BOM)。
operator==(const UnicodeEncoding&) const通过代码页和标志比较编码。
UnicodeEncoding()构造函数。
UnicodeEncoding(bool, bool)构造函数。
UnicodeEncoding(bool, bool, bool)构造函数。

字段

字段描述
static constexpr BIG_UNICODE_CODE_PAGE大端字节序代码页编号。
static constexpr DEFAULT_CODE_PAGE默认代码页值。
static constexpr UNICODE_CODE_PAGE小端字节序代码页编号。

另见