23 #ifndef __OPENCC_ENCODING_H_
24 #define __OPENCC_ENCODING_H_
46 size_t ucs4len(
const ucs4_t* str);
48 int ucs4cmp(
const ucs4_t* str1,
const ucs4_t* str2);
50 void ucs4cpy(ucs4_t* dest,
const ucs4_t* src);
52 void ucs4ncpy(ucs4_t* dest,
const ucs4_t* src,
size_t len);
char * ucs4_to_utf8(const ucs4_t *ucs4, size_t length)
Converts a UCS-4 string into UTF-8.
ucs4_t * utf8_to_ucs4(const char *utf8, size_t length)
Converts a UTF-8 string into UCS-4.