System::Text::UTF8Encoding 类

UTF8Encoding class

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

class UTF8Encoding : public System::Text::ICUEncoding

方法

方法描述
Clone() override克隆编码对象。
Equals(SharedPtr<Object>) override与对象比较。
GetHashCode() const override获取编码的哈希码。
GetMaxByteCount(int) override获取对指定字符数进行编码所需的最大字节数。
GetMaxCharCount(int) override获取对指定字节数进行解码所需的最大字符数。
GetPreamble() override获取代码页前导字节。
operator==(const UTF8Encoding&) const比较编码参数。
UTF8Encoding()构造函数。
UTF8Encoding(bool)构造函数。
UTF8Encoding(bool, bool)构造函数。

字段

字段描述
static constexpr DEFAULT_CODE_PAGE默认代码页值。
static constexpr UTF8_CODE_PAGERTTI 信息。

另见