A utility class supporting conversion between multiple character-sets. More...
#include <Charset.hpp>
A utility class supporting conversion between multiple character-sets.
Charset class, it's easier to think iconv in linux
Supported character-sets
Definition at line 35 of file Charset.hpp.
Convert utf-8 to multibyte.
Converts utf-8 string to multibyte string.
If the utf-8 string has header int the front, it will be erased.
Definition at line 56 of file Charset.hpp.
References toUnicode().
Convert unicode to multibyte.
Converts unicode string to multibyte string
If the unicode string has header in the front, it will be erased
Definition at line 76 of file Charset.hpp.
Convert multibyte to utf-8.
Converts multibyte string to utf-8 string
If the inputted string is not multibyte, then may cause breakage on letters
Definition at line 122 of file Charset.hpp.
References toUnicode().
Convert unicode to utf-8.
Converts unicode string to utf-8 string
Generated utf-8 string follows unicode string wheter to have header or not
Definition at line 145 of file Charset.hpp.
Convert multibyte or utf-8 to unicode.
Definition at line 166 of file Charset.hpp.
Referenced by toMultibyte(), and toUTF8().