libhomegear-base  0.7
Base library for Homegear and Homegear family modules.
BaseLib::Ansi Class Reference

#include <Ansi.h>

Public Member Functions

 Ansi (bool ansiToUtf8, bool utf8ToAnsi)
 
virtual ~Ansi ()
 
std::string toUtf8 (const std::string &ansiString)
 
std::string toUtf8 (const char *ansiString, uint32_t length)
 
std::string toAnsi (const std::string &utf8String)
 
std::string toAnsi (const char *utf8String, uint32_t length)
 

Protected Attributes

bool _ansiToUtf8 = false
 
bool _utf8ToAnsi = false
 
std::vector< std::vector< uint8_t > > _utf8Lookup
 
std::map< uint32_t, uint8_t > _ansiLookup
 

Constructor & Destructor Documentation

§ Ansi()

BaseLib::Ansi::Ansi ( bool  ansiToUtf8,
bool  utf8ToAnsi 
)

§ ~Ansi()

virtual BaseLib::Ansi::~Ansi ( )
inlinevirtual

Member Function Documentation

§ toAnsi() [1/2]

std::string BaseLib::Ansi::toAnsi ( const std::string &  utf8String)

§ toAnsi() [2/2]

std::string BaseLib::Ansi::toAnsi ( const char *  utf8String,
uint32_t  length 
)

§ toUtf8() [1/2]

std::string BaseLib::Ansi::toUtf8 ( const std::string &  ansiString)

§ toUtf8() [2/2]

std::string BaseLib::Ansi::toUtf8 ( const char *  ansiString,
uint32_t  length 
)

Member Data Documentation

§ _ansiLookup

std::map<uint32_t, uint8_t> BaseLib::Ansi::_ansiLookup
protected

§ _ansiToUtf8

bool BaseLib::Ansi::_ansiToUtf8 = false
protected

§ _utf8Lookup

std::vector<std::vector<uint8_t> > BaseLib::Ansi::_utf8Lookup
protected

§ _utf8ToAnsi

bool BaseLib::Ansi::_utf8ToAnsi = false
protected

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