![]() |
Lumino
|
内部文字コード (UTF16) をエンコードするクラス More...
#include <Encoding.hpp>
Public Member Functions | |
TextEncoding * | encoding () const |
この Encoder に対応する TextEncoding を取得します。 | |
virtual bool | canRemain ()=0 |
変換状態を保持できるかを確認します。 | |
virtual bool | convertFromUTF16 (const UTF16 *input, size_t inputElementSize, byte_t *output, size_t outputByteSize, TextEncodeResult *outResult)=0 |
UTF16 文字列を、このエンコーディングで表現される文字列に変換します。 More... | |
virtual int | usedDefaultCharCount ()=0 |
一連の convertToUTF16() の呼び出しの中で、変換できない文字を規定文字に変換した文字数を取得します。 | |
virtual bool | completed ()=0 |
最後の convertToUTF16() で、バッファ末尾でマルチバイト文字が途切れていなければ true を返します。 | |
virtual void | reset ()=0 |
変換ステータスをクリアし、初期状態に戻します。 | |
内部文字コード (UTF16) をエンコードするクラス
TextDecoder 同様、canRemain() が true の場合は変換ステータスを保存します。
|
pure virtual |
UTF16 文字列を、このエンコーディングで表現される文字列に変換します。
[in] | input | : このエンコーディングで表現される文字列バッファ |
[in] | inputElementSize | : input のサイズ (要素数単位。NULL 文字は含まない) |
[out] | output | : 変換結果の格納先バッファ |
[in] | outputByteSize | : output のバイト数 |
[out] | outResult | : 変換結果を格納する変数 |