liblcf
|
#include <encoder.h>
Public Member Functions | |
Encoder (std::string encoding) | |
Encoder (const Encoder &)=delete | |
Encoder & | operator= (const Encoder &)=delete |
~Encoder () | |
void | Encode (std::string &str) |
void | Decode (std::string &str) |
bool | IsOk () const |
const std::string & | GetEncoding () const |
Private Member Functions | |
void | Init () |
void | Reset () |
void | Convert (std::string &str, void *conv_dst, void *conv_src) |
Private Attributes | |
void * | _conv_storage = nullptr |
void * | _conv_runtime = nullptr |
std::vector< char > | _buffer |
std::string | _encoding |
|
explicit |
Definition at line 49 of file encoder.cpp.
References Init().
|
delete |
Encoder::~Encoder | ( | ) |
Definition at line 55 of file encoder.cpp.
References Reset().
|
private |
Definition at line 125 of file encoder.cpp.
References _buffer.
Referenced by Decode(), and Encode().
void Encoder::Decode | ( | std::string & | str | ) |
Definition at line 70 of file encoder.cpp.
References _conv_runtime, _conv_storage, _encoding, and Convert().
Referenced by LcfWriter::Decode().
void Encoder::Encode | ( | std::string & | str | ) |
Definition at line 63 of file encoder.cpp.
References _conv_runtime, _conv_storage, _encoding, and Convert().
Referenced by LcfReader::Encode().
|
inline |
|
private |
Definition at line 77 of file encoder.cpp.
References _conv_runtime, _conv_storage, _encoding, ReaderUtil::CodepageToEncoding(), and makeScopeGuard().
Referenced by Encoder().
bool Encoder::IsOk | ( | ) | const |
Definition at line 59 of file encoder.cpp.
References _conv_runtime, _conv_storage, and _encoding.
Referenced by LcfWriter::IsOk(), and LcfReader::IsOk().
|
private |
Definition at line 115 of file encoder.cpp.
References _conv_runtime, and _conv_storage.
Referenced by ~Encoder().
|
private |
|
private |
|
private |
|
private |