2 /* Copyright (C) 2002 Olivier Chapuis */
7 /* ---------------------------- included header files ---------------------- */
11 /* ---------------------------- global definitions ------------------------- */
14 #define FiconvSupport 1
16 #define FiconvSupport 0
21 #define Ficonv_open(a,b) iconv_open(a,b)
22 #define Ficonv_close(a) iconv_close(a)
23 #define Ficonv(a,b,c,d,e) iconv(a,b,c,d,e)
27 #define Ficonv_open(a,b) (Ficonv_t)-1
28 #define Ficonv_close(a) -1
29 #define Ficonv(a,b,c,d,e) -1
33 /* ---------------------------- global macros ------------------------------ */
35 #define FICONV_CONVERSION_MAX_NUMBER_OF_WARNING 10
37 /* ---------------------------- type definitions --------------------------- */
39 typedef void* Ficonv_t
;
41 /* ---------------------------- interface functions ------------------------ */
42 char *FiconvUtf8ToCharset(
43 Display
*dpy
, FlocaleCharset
*fc
, const char *in
,
44 unsigned int in_size
);
45 char *FiconvCharsetToUtf8(
46 Display
*dpy
, FlocaleCharset
*fc
, const char *in
,
47 unsigned int in_size
);
48 char *FiconvCharsetToCharset(
49 Display
*dpy
, FlocaleCharset
*in_fc
, FlocaleCharset
*out_fc
,
50 const char *in
, unsigned int in_size
);