Lumino
ln::EncodingConverter Class Reference

テキスト間のエンコーディングの変換を行うクラスです。同じエンコーディングで何回も変換する際、効率的に変換を行うことができます。 More...

#include <EncodingConverter.hpp>

Public Member Functions

void setDestinationEncoding (TextEncoding *encoding)
 変換先テキストのエンコーディングを設定します。
 
TextEncodinggetDestinationEncoding () const
 変換先テキストのエンコーディングを取得します。
 
void getSourceEncoding (TextEncoding *encoding)
 変換元テキストのエンコーディングを設定します。
 
TextEncodinggetSourceEncoding () const
 変換元テキストのエンコーディングを取得します。
 
void setConversionOptions (const EncodingConversionOptions &options)
 変換のオプションを設定します。
 
const ByteBufferconvert (const void *data, size_t byteCount, EncodingConversionResult *outResult=nullptr)
 テキストを変換します。
 
const ByteBuffergetLastBuffer () const
 最後に呼び出した convert() で変換されたバッファを取得します。これは convert() の戻り値と同一です。
 
const EncodingConversionResultgetLastResult () const
 最後に呼び出した convert()EncodingConversionResult を取得します。
 

Detailed Description

テキスト間のエンコーディングの変換を行うクラスです。同じエンコーディングで何回も変換する際、効率的に変換を行うことができます。


The documentation for this class was generated from the following file: