ZFFramework
 
Loading...
Searching...
No Matches
UTFCodeUtil.h
Go to the documentation of this file.
1
5
6#ifndef _UTFCodeUtil_h_
7#define _UTFCodeUtil_h_
8
11#define UTFCodeUtil_EXPORT ZFLIB_ZF_impl
13
14#include <cwchar>
15
17#ifndef UTFCodeUtil_EXPORT
18 #define UTFCodeUtil_EXPORT
19#endif
20
21namespace UTFCodeUtil {
22
28 extern UTFCodeUtil_EXPORT size_t UTF8GetWordCount(const char *src);
29
33 extern UTFCodeUtil_EXPORT char *UTF16ToUTF8(const wchar_t *src);
39 extern UTFCodeUtil_EXPORT wchar_t *UTF8ToUTF16(const char *src);
40
44 extern UTFCodeUtil_EXPORT wchar_t *UTF16ToUTF16BE(const wchar_t *src);
48 extern UTFCodeUtil_EXPORT wchar_t *UTF16BEToUTF16(const wchar_t *src);
49
50} // namespace UTFCodeUtil
51
52#endif // #ifndef _UTFCodeUtil_h_
53
size_t UTF8GetWordCount(const char *src)
get logic word count of UTF8 string instead of byte size
#define UTFCodeUtil_EXPORT
used to export symbols
Definition UTFCodeUtil.h:18
wchar_t * UTF16BEToUTF16(const wchar_t *src)
convert UTF16 big endian to UTF16
wchar_t * UTF8ToUTF16(const char *src)
convert UTF8 to UTF16
wchar_t * UTF16ToUTF16BE(const wchar_t *src)
convert UTF16 to UTF16 big endian
char * UTF16ToUTF8(const wchar_t *src)
convert UTF16 to UTF8
global header for ZF_impl module