fvwm-convert-2.6: Preserve comma-separated options in conditional commands.
[fvwm.git] / libs / FlocaleCharset.h
blobe6b7263d14b87b8d089c2a2407d7f04ca430aaab
1 /* -*-c-*- */
2 /* Copyright (C) 2002 Olivier Chapuis */
4 #ifndef FLOCALE_CHARSET_H
5 #define FLOCALE_CHARSET_H
7 /* ---------------------------- included header files ---------------------- */
9 #include "config.h"
10 #include "Flocale.h"
12 /* ---------------------------- global definitions ------------------------- */
14 #ifdef HAVE_LIBCHARSET
15 #define FlocaleLibcharsetSupport 1
16 #else
17 #define FlocaleLibcharsetSupport 0
18 #endif
20 #ifdef HAVE_CODESET
21 #define FlocaleCodesetSupport 1
22 #else
23 #define FlocaleCodesetSupport 0
24 #endif
26 #if FlocaleLibcharsetSupport
27 #define Flocale_charset() locale_charset()
28 #else
29 #define Flocale_charset() NULL
30 #endif
32 #if FlocaleCodesetSupport
33 #define Fnl_langinfo(a) nl_langinfo(a)
34 #define FCODESET CODESET
35 #else
36 #define Fnl_langinfo(a) NULL
37 #define FCODESET 0
38 #endif
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,
55 char *module);
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 */