## ICUEncoder class


[Encoder](../encoder/) that uses ICU for encoding. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
class ICUEncoder : public System::Text::Encoder
```

## 方法

| 方法 | 描述 |
| --- | --- |
| virtual [Convert](./convert/)(ArrayPtr\<char_t\>, int, int, ArrayPtr\<uint8_t\>, int, int, bool, int\&, int\&, bool\&) | 将字符转换为字节。 |
| virtual [Convert](./convert/)(const char_t *, int, uint8_t *, int, bool, int\&, int\&, bool\&) | 将字符转换为字节。 |
| virtual [GetByteCount](./getbytecount/)(ArrayPtr\<char_t\>, int, int, bool) | 获取编码缓冲区所需的字节数。 |
| virtual [GetByteCount](./getbytecount/)(const char_t *, int, bool) | 获取编码缓冲区所需的字节数。 |
| virtual [GetBytes](./getbytes/)(ArrayPtr\<char_t\>, int, int, ArrayPtr\<uint8_t\>, int, bool) | 获取编码缓冲区后得到的字节。 |
| virtual [GetBytes](./getbytes/)(const char_t *, int, uint8_t *, int, bool) | 获取编码缓冲区后得到的字节。 |
| [ICUEncoder](./icuencoder/)(ICUEncoding *) | 构造函数。 |
| virtual [Reset](./reset/)() | 将内部变量设置为初始状态。 |
| [~ICUEncoder](./~icuencoder/)() | 析构函数。 |
## Typedefs

| 类型定义 | 描述 |
| --- | --- |
| [Base](./base/) | [Base](./base/) 类型。 |
## 另见

* Class [Encoder](../encoder/)
* Namespace [System::Text](../)
* Library [Aspose.Font for C++](../../)
