1 /**************************************************************************
2 * Copyright (C), AirM2M Tech. Co., Ltd.
10 * ×Ö·û±àÂëת»»ÄÚ²¿ÉùÃ÷Îļþ
11 **************************************************************************/
13 #ifndef __PRV_ICONV_H__
14 #define __PRV_ICONV_H__
16 /* ±àÂëת»»´¦Àíº¯Êý iconv */
17 typedef size_t (*iconv_fct
) (char ** __inbuf
,
18 size_t * __inbytesleft
,
20 size_t * __outbytesleft
);
22 size_t iconv_ucs2_to_gb2312(char **, size_t *, char **, size_t *);
23 /*+\NEW\liweiqiang\2013.11.26\ÍêÉÆgb2312<->ucs2(ucs2be)±àÂëת»»*/
24 size_t iconv_ucs2be_to_gb2312(char **, size_t *, char **, size_t *);
25 size_t iconv_gb2312_to_ucs2(char **, size_t *, char **, size_t *);
26 size_t iconv_gb2312_to_ucs2be(char **, size_t *, char **, size_t *);
27 /*-\NEW\liweiqiang\2013.11.26\ÍêÉÆgb2312<->ucs2(ucs2be)±àÂëת»»*/
29 /*+\NEW\liweiqiang\2013.7.19\Ôö¼Óutf8<->ucs2,ucs2be±àÂëת»»*/
30 size_t iconv_utf8_to_ucs2(char **, size_t *, char **, size_t *);
32 size_t iconv_utf8_to_ucs2be(char **, size_t *, char **, size_t *);
34 size_t iconv_ucs2_to_utf8(char **, size_t *, char **, size_t *);
36 size_t iconv_ucs2be_to_utf8(char **, size_t *, char **, size_t *);
37 /*-\NEW\liweiqiang\2013.7.19\Ôö¼Óutf8<->ucs2,ucs2be±àÂëת»»*/
39 #endif/*__PRV_ICONV_H__*/