2 /* Copyright (C) 2002 Olivier Chapuis */
4 #ifndef FLOCALE_CHARSET_H
5 #define FLOCALE_CHARSET_H
7 /* ---------------------------- included header files ---------------------- */
12 /* ---------------------------- global definitions ------------------------- */
14 #ifdef HAVE_LIBCHARSET
15 #define FlocaleLibcharsetSupport 1
17 #define FlocaleLibcharsetSupport 0
21 #define FlocaleCodesetSupport 1
23 #define FlocaleCodesetSupport 0
26 #if FlocaleLibcharsetSupport
27 #define Flocale_charset() locale_charset()
29 #define Flocale_charset() NULL
32 #if FlocaleCodesetSupport
33 #define Fnl_langinfo(a) nl_langinfo(a)
34 #define FCODESET CODESET
36 #define Fnl_langinfo(a) NULL
40 /* ---------------------------- global macros ------------------------------ */
42 /* ---------------------------- type definitions --------------------------- */
44 /* ---------------------------- exported variables (globals) --------------- */
46 /* ---------------------------- interface functions ------------------------ */
51 void FlocaleCharsetInit(Display
*dpy
, const char *module
);
53 void FlocaleCharsetSetFlocaleCharset(
54 Display
*dpy
, FlocaleFont
*flf
, char *hints
, char *encoding
,
57 FlocaleCharset
*FlocaleCharsetGetDefaultCharset(Display
*dpy
, char *module
);
58 FlocaleCharset
*FlocaleCharsetGetFLCXOMCharset(void);
59 FlocaleCharset
*FlocaleCharsetGetUtf8Charset(void);
60 FlocaleCharset
*FlocaleCharsetGetLocaleCharset(void);
61 FlocaleCharset
*FlocaleCharsetGetUnknownCharset(void);
62 const char *FlocaleGetBidiCharset(Display
*dpy
, FlocaleCharset
*fc
);
63 FlocaleCharset
*FlocaleCharsetGetEUCJPCharset(void);
64 Bool
FlocaleCharsetIsCharsetXLocale(Display
*dpy
, char *charset
, char *module
);
65 void FlocaleCharsetPrintXOMInfo(void);
67 #endif /* FLOCALE_CHARSET_H */