1 /* Copyright (C) 1996-2014 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
3 Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library 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 GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
22 /* Declarations of locale dependent catalog lookup functions.
25 localealias.c Possibly replace a locale name by another.
26 explodename.c Split a locale name into its various fields.
27 l10nflist.c Generate a list of filenames of possible message catalogs.
28 finddomain.c Find and open the relevant message catalogs.
30 The main function _nl_find_domain() in finddomain.c is declared
35 # if __STDC__ || defined __GNUC__ || defined __SUNPRO_C || defined __cplusplus || __PROTOTYPES
36 # define PARAMS(args) args
38 # define PARAMS(args) ()
42 #ifndef internal_function
43 # define internal_function
46 /* Encoding of locale name parts. */
47 #define XPG_NORM_CODESET 1
49 #define XPG_TERRITORY 4
50 #define XPG_MODIFIER 8
53 struct loaded_l10nfile
60 struct loaded_l10nfile
*next
;
61 struct loaded_l10nfile
*successor
[1];
65 /* Normalize codeset name. There is no standard for the codeset
66 names. Normalization allows the user to use any of the common
67 names. The return value is dynamically allocated and has to be
68 freed by the caller. */
69 extern const char *_nl_normalize_codeset
PARAMS ((const char *codeset
,
72 extern struct loaded_l10nfile
*
73 _nl_make_l10nflist
PARAMS ((struct loaded_l10nfile
**l10nfile_list
,
74 const char *dirlist
, size_t dirlist_len
, int mask
,
75 const char *language
, const char *territory
,
77 const char *normalized_codeset
,
78 const char *modifier
, const char *filename
,
82 extern const char *_nl_expand_alias
PARAMS ((const char *name
));
84 /* normalized_codeset is dynamically allocated and has to be freed by
86 extern int _nl_explode_name
PARAMS ((char *name
, const char **language
,
87 const char **modifier
,
88 const char **territory
,
90 const char **normalized_codeset
));
92 #endif /* loadinfo.h */