Open Chinese Convert  0.4.3
A project for conversion between Traditional and Simplified Chinese
 All Data Structures Files Functions Variables Groups Pages
encoding.h
Go to the documentation of this file.
1 
23 #ifndef __OPENCC_ENCODING_H_
24 #define __OPENCC_ENCODING_H_
25 
26 #include "common.h"
27 
35 ucs4_t* utf8_to_ucs4(const char* utf8, size_t length);
36 
44 char* ucs4_to_utf8(const ucs4_t* ucs4, size_t length);
45 
46 size_t ucs4len(const ucs4_t* str);
47 
48 int ucs4cmp(const ucs4_t* str1, const ucs4_t* str2);
49 
50 void ucs4cpy(ucs4_t* dest, const ucs4_t* src);
51 
52 void ucs4ncpy(ucs4_t* dest, const ucs4_t* src, size_t len);
53 
54 #endif /* __OPENCC_ENCODING_H_ */