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 void FiconvSetTransliterateUtf8(int toggle
);
43 char *FiconvUtf8ToCharset(
44 Display
*dpy
, FlocaleCharset
*fc
, const char *in
,
45 unsigned int in_size
);
46 char *FiconvCharsetToUtf8(
47 Display
*dpy
, FlocaleCharset
*fc
, const char *in
,
48 unsigned int in_size
);
49 char *FiconvCharsetToCharset(
50 Display
*dpy
, FlocaleCharset
*in_fc
, FlocaleCharset
*out_fc
,
51 const char *in
, unsigned int in_size
);