Open Chinese Convert
0.4.3
A project for conversion between Traditional and Simplified Chinese
|
00001 00023 #ifndef __OPENCC_ENCODING_H_ 00024 #define __OPENCC_ENCODING_H_ 00025 00026 #include "common.h" 00027 00035 ucs4_t* utf8_to_ucs4(const char* utf8, size_t length); 00036 00044 char* ucs4_to_utf8(const ucs4_t* ucs4, size_t length); 00045 00046 size_t ucs4len(const ucs4_t* str); 00047 00048 int ucs4cmp(const ucs4_t* str1, const ucs4_t* str2); 00049 00050 void ucs4cpy(ucs4_t* dest, const ucs4_t* src); 00051 00052 void ucs4ncpy(ucs4_t* dest, const ucs4_t* src, size_t len); 00053 00054 #endif /* __OPENCC_ENCODING_H_ */