1
/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
2
This file is part of the GNU C Library.
3
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2, or (at your option)
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with this program; if not, write to the Free Software Foundation,
17
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
21
# define PARAMS(args) args
23
# define PARAMS(args) ()
27
/* Encoding of locale name parts. */
28
#define CEN_REVISION 1
31
#define XPG_NORM_CODESET 8
32
#define XPG_CODESET 16
34
#define CEN_AUDIENCE 64
35
#define XPG_MODIFIER 128
37
#define CEN_SPECIFIC (CEN_REVISION|CEN_SPONSOR|CEN_SPECIAL|CEN_AUDIENCE)
38
#define XPG_SPECIFIC (XPG_CODESET|XPG_NORM_CODESET|XPG_MODIFIER)
41
struct loaded_l10nfile
48
struct loaded_l10nfile *next;
49
struct loaded_l10nfile *successor[1];
53
extern const char *_nl_normalize_codeset PARAMS ((const char *codeset,
56
extern struct loaded_l10nfile *
57
_nl_make_l10nflist PARAMS ((struct loaded_l10nfile **l10nfile_list,
58
const char *dirlist, size_t dirlist_len, int mask,
59
const char *language, const char *territory,
61
const char *normalized_codeset,
62
const char *modifier, const char *special,
63
const char *sponsor, const char *revision,
64
const char *filename, int do_allocate));
67
extern const char *_nl_expand_alias PARAMS ((const char *name));
69
extern int _nl_explode_name PARAMS ((char *name, const char **language,
70
const char **modifier,
71
const char **territory,
73
const char **normalized_codeset,
76
const char **revision));
78
extern char *_nl_find_language PARAMS ((const char *name));