simple UTF code convertor More...
#include <cwchar>Go to the source code of this file.
Macros | |
| #define | UTFCodeUtil_EXPORT |
| used to export symbols | |
Functions | |
| size_t | UTFCodeUtil::UTF8GetWordCount (const char *src) |
| get logic word count of UTF8 string instead of byte size | |
| char * | UTFCodeUtil::UTF16ToUTF8 (const wchar_t *src) |
| convert UTF16 to UTF8 | |
| wchar_t * | UTFCodeUtil::UTF8ToUTF16 (const char *src) |
| convert UTF8 to UTF16 | |
| wchar_t * | UTFCodeUtil::UTF16ToUTF16BE (const wchar_t *src) |
| convert UTF16 to UTF16 big endian | |
| wchar_t * | UTFCodeUtil::UTF16BEToUTF16 (const wchar_t *src) |
| convert UTF16 big endian to UTF16 | |
simple UTF code convertor
|
extern |
get logic word count of UTF8 string instead of byte size
return (size_t)-1 if invalid utf8 chars exist
|
extern |
convert UTF8 to UTF16
use space if letter out of UTF16's range