1 #ifndef COMPONENTS_TOUTF8_H
2 #define COMPONENTS_TOUTF8_H
31 std::string
getUtf8(
const char *input,
size_t size);
32 inline std::string
getUtf8(
const std::string &str)
34 return getUtf8(str.c_str(), str.size());
37 std::string
getLegacyEnc(
const char *input,
size_t size);
45 size_t getLength(
const char* input,
bool &ascii);
47 size_t getLength2(
const char* input,
bool &ascii);
FromType calculateEncoding(const std::string &encodingName)
Definition: to_utf8.cpp:329
signed char * translationArray
Definition: to_utf8.hpp:51
std::string encodingUsingMessage(const std::string &encodingName)
Definition: to_utf8.cpp:341
size_t getLength(const char *input, bool &ascii)
Definition: to_utf8.cpp:185
void resize(size_t size)
Definition: to_utf8.cpp:164
std::string getUtf8(const std::string &str)
Definition: to_utf8.hpp:32
Utf8Encoder(FromType sourceEncoding)
Definition: to_utf8.cpp:47
std::string getUtf8(const char *input, size_t size)
Definition: to_utf8.cpp:80
std::string getLegacyEnc(const char *input, size_t size)
Definition: to_utf8.cpp:121
Definition: to_utf8.hpp:15
void copyFromArray(unsigned char chp, char *&out)
Definition: to_utf8.cpp:217
Definition: to_utf8.hpp:17
size_t getLength2(const char *input, bool &ascii)
Definition: to_utf8.cpp:232
FromType
Definition: to_utf8.hpp:11
Definition: to_utf8.hpp:14
void copyFromArray2(const char *&chp, char *&out)
Definition: to_utf8.cpp:276
Definition: to_utf8.hpp:25
std::string getLegacyEnc(const std::string &str)
Definition: to_utf8.hpp:38
std::vector< char > mOutput
Definition: to_utf8.hpp:50
Definition: to_utf8.hpp:13