File: FlocaleCharset.h

package info (click to toggle)
fvwm 1:2.6.8-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 15,804 kB
  • sloc: ansic: 145,770; xml: 17,093; perl: 7,302; sh: 4,921; makefile: 1,094; yacc: 688; lex: 187; sed: 11
file content (67 lines) | stat: -rw-r--r-- 1,868 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/* -*-c-*- */
/* Copyright (C) 2002  Olivier Chapuis */

#ifndef FLOCALE_CHARSET_H
#define FLOCALE_CHARSET_H

/* ---------------------------- included header files ---------------------- */

#include "config.h"
#include "Flocale.h"

/* ---------------------------- global definitions ------------------------- */

#ifdef HAVE_LIBCHARSET
#define FlocaleLibcharsetSupport 1
#else
#define FlocaleLibcharsetSupport 0
#endif

#ifdef HAVE_CODESET
#define FlocaleCodesetSupport 1
#else
#define FlocaleCodesetSupport 0
#endif

#if FlocaleLibcharsetSupport
#define Flocale_charset()   locale_charset()
#else
#define Flocale_charset()   NULL
#endif

#if FlocaleCodesetSupport
#define Fnl_langinfo(a) nl_langinfo(a)
#define FCODESET CODESET
#else
#define Fnl_langinfo(a) NULL
#define FCODESET 0
#endif

/* ---------------------------- global macros ------------------------------ */

/* ---------------------------- type definitions --------------------------- */

/* ---------------------------- exported variables (globals) --------------- */

/* ---------------------------- interface functions ------------------------ */

/*
 *
 */
void FlocaleCharsetInit(Display *dpy, const char *module);

void FlocaleCharsetSetFlocaleCharset(
	Display *dpy, FlocaleFont *flf, char *hints, char *encoding,
	char *module);

FlocaleCharset *FlocaleCharsetGetDefaultCharset(Display *dpy, char *module);
FlocaleCharset *FlocaleCharsetGetFLCXOMCharset(void);
FlocaleCharset *FlocaleCharsetGetUtf8Charset(void);
FlocaleCharset *FlocaleCharsetGetLocaleCharset(void);
FlocaleCharset *FlocaleCharsetGetUnknownCharset(void);
const char *FlocaleGetBidiCharset(Display *dpy, FlocaleCharset *fc);
FlocaleCharset *FlocaleCharsetGetEUCJPCharset(void);
Bool FlocaleCharsetIsCharsetXLocale(Display *dpy, char *charset, char *module);
void FlocaleCharsetPrintXOMInfo(void);

#endif /* FLOCALE_CHARSET_H */