#include <EBOOKCharsetConverter.h>
Public Member Functions | |
| EBOOKCharsetConverter (const char *encoding=nullptr) | |
| ~EBOOKCharsetConverter () | |
| bool | guessEncoding (const char *in, unsigned length) |
| bool | convertBytes (const char *in, unsigned length, std::vector< char > &out) |
Private Types | |
| using | UConverterPtr_t = std::unique_ptr< UConverter, void(*)(UConverter *)> |
Private Member Functions | |
| EBOOKCharsetConverter (const EBOOKCharsetConverter &other) | |
| EBOOKCharsetConverter & | operator= (const EBOOKCharsetConverter &other) |
Private Attributes | |
| UConverterPtr_t | m_converterToUnicode |
| UConverterPtr_t | m_converterToUTF8 |
|
private |
|
private |
|
explicit |
| libebook::EBOOKCharsetConverter::~EBOOKCharsetConverter | ( | ) |
| bool libebook::EBOOKCharsetConverter::convertBytes | ( | const char * | in, |
| unsigned | length, | ||
| std::vector< char > & | out | ||
| ) |
Referenced by libebook::EBOOKUTF8Stream::EBOOKUTF8Stream().
| bool libebook::EBOOKCharsetConverter::guessEncoding | ( | const char * | in, |
| unsigned | length | ||
| ) |
Referenced by libebook::EBOOKUTF8Stream::EBOOKUTF8Stream(), and libebook::TCRParser::uncompress().
|
private |
|
private |
Referenced by convertBytes(), EBOOKCharsetConverter(), and guessEncoding().
|
private |
Referenced by convertBytes(), and EBOOKCharsetConverter().