Fri May 3 03:14:02 1996 Ulrich Drepper <drepper@cygnus.com>
[kopensolaris-gnu/glibc.git] / intl / loadinfo.h
1 /* Encoding of locale name parts.  */
2 #define CEN_REVISION            1
3 #define CEN_SPONSOR             2
4 #define CEN_SPECIAL             4
5 #define XPG_NORM_CODESET        8
6 #define XPG_CODESET             16
7 #define TERRITORY               32
8 #define CEN_AUDIENCE            64
9 #define XPG_MODIFIER            128
10
11 #define CEN_SPECIFIC    (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
12 #define XPG_SPECIFIC    (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
13
14
15 struct loaded_l10nfile
16 {
17   const char *filename;
18   int decided;
19
20   const void *data;
21
22   struct loaded_l10nfile *next;
23   struct loaded_l10nfile *successor[1];
24 };
25
26
27 extern const char *_nl_normalize_codeset __P ((const char *codeset,
28                                                size_t name_len));
29
30 extern struct loaded_l10nfile *
31 _nl_make_l10nflist __P ((struct loaded_l10nfile **l10nfile_list,
32                          const char *dirlist, size_t dirlist_len, int mask,
33                          const char *language, const char *territory,
34                          const char *codeset, const char *normalized_codeset,
35                          const char *modifier, const char *special,
36                          const char *sponsor, const char *revision,
37                          const char *filename, int do_allocate));
38
39
40 extern const char *_nl_expand_alias __P ((const char *name));
41
42 extern int _nl_explode_name __P ((char *name, const char **language,
43                                   const char **modifier,
44                                   const char **territory,
45                                   const char **codeset,
46                                   const char **normalized_codeset,
47                                   const char **special, const char **sponsor,
48                                   const char **revision));