OSDN Git Service

The big thing is locale dependent collation support.
[uclinux-h8/uClibc.git] / include / langinfo.h
1 /* Access to locale-dependent parameters.
2    Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
3    This file is part of the GNU C Library.
4
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.
9
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.
14
15    You should have received a copy of the GNU Lesser General Public
16    License along with the GNU C Library; if not, write to the Free
17    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18    02111-1307 USA.  */
19
20 #ifndef _LANGINFO_H
21 #define _LANGINFO_H 1
22
23 /* Get the type definition.  */
24 #include <nl_types.h>
25
26 #include <bits/uClibc_locale.h> /* Define the __LC_* category names.  */
27
28
29 __BEGIN_DECLS
30
31 /* Construct an `nl_item' value for `nl_langinfo' from a locale category
32    (LC_*) and an item index within the category.  Some code may depend on
33    the item values within a category increasing monotonically with the
34    indices.  */
35 #define _NL_ITEM(category, index) \
36         (((category) << __NL_ITEM_CATEGORY_SHIFT) | (index))
37
38 /* Extract the category and item index from a constructed `nl_item' value.  */
39 #define _NL_ITEM_CATEGORY(item)         ((int) (item) >> __NL_ITEM_CATEGORY_SHIFT)
40 #define _NL_ITEM_INDEX(item)            ((int) (item) & __NL_ITEM_INDEX_MASK)
41
42
43 /* Enumeration of locale items that can be queried with `nl_langinfo'.  */
44 enum
45 {
46   /* LC_TIME category: date and time formatting.  */
47
48   /* Abbreviated days of the week. */
49   ABDAY_1 = _NL_ITEM (__LC_TIME, 0), /* Sun */
50 #define ABDAY_1                 ABDAY_1
51   ABDAY_2,
52 #define ABDAY_2                 ABDAY_2
53   ABDAY_3,
54 #define ABDAY_3                 ABDAY_3
55   ABDAY_4,
56 #define ABDAY_4                 ABDAY_4
57   ABDAY_5,
58 #define ABDAY_5                 ABDAY_5
59   ABDAY_6,
60 #define ABDAY_6                 ABDAY_6
61   ABDAY_7,
62 #define ABDAY_7                 ABDAY_7
63
64   /* Long-named days of the week. */
65   DAY_1,                        /* Sunday */
66 #define DAY_1                   DAY_1
67   DAY_2,                        /* Monday */
68 #define DAY_2                   DAY_2
69   DAY_3,                        /* Tuesday */
70 #define DAY_3                   DAY_3
71   DAY_4,                        /* Wednesday */
72 #define DAY_4                   DAY_4
73   DAY_5,                        /* Thursday */
74 #define DAY_5                   DAY_5
75   DAY_6,                        /* Friday */
76 #define DAY_6                   DAY_6
77   DAY_7,                        /* Saturday */
78 #define DAY_7                   DAY_7
79
80   /* Abbreviated month names.  */
81   ABMON_1,                      /* Jan */
82 #define ABMON_1                 ABMON_1
83   ABMON_2,
84 #define ABMON_2                 ABMON_2
85   ABMON_3,
86 #define ABMON_3                 ABMON_3
87   ABMON_4,
88 #define ABMON_4                 ABMON_4
89   ABMON_5,
90 #define ABMON_5                 ABMON_5
91   ABMON_6,
92 #define ABMON_6                 ABMON_6
93   ABMON_7,
94 #define ABMON_7                 ABMON_7
95   ABMON_8,
96 #define ABMON_8                 ABMON_8
97   ABMON_9,
98 #define ABMON_9                 ABMON_9
99   ABMON_10,
100 #define ABMON_10                ABMON_10
101   ABMON_11,
102 #define ABMON_11                ABMON_11
103   ABMON_12,
104 #define ABMON_12                ABMON_12
105
106   /* Long month names.  */
107   MON_1,                        /* January */
108 #define MON_1                   MON_1
109   MON_2,
110 #define MON_2                   MON_2
111   MON_3,
112 #define MON_3                   MON_3
113   MON_4,
114 #define MON_4                   MON_4
115   MON_5,
116 #define MON_5                   MON_5
117   MON_6,
118 #define MON_6                   MON_6
119   MON_7,
120 #define MON_7                   MON_7
121   MON_8,
122 #define MON_8                   MON_8
123   MON_9,
124 #define MON_9                   MON_9
125   MON_10,
126 #define MON_10                  MON_10
127   MON_11,
128 #define MON_11                  MON_11
129   MON_12,
130 #define MON_12                  MON_12
131
132   AM_STR,                       /* Ante meridian string.  */
133 #define AM_STR                  AM_STR
134   PM_STR,                       /* Post meridian string.  */
135 #define PM_STR                  PM_STR
136
137   D_T_FMT,                      /* Date and time format for strftime.  */
138 #define D_T_FMT                 D_T_FMT
139   D_FMT,                        /* Date format for strftime.  */
140 #define D_FMT                   D_FMT
141   T_FMT,                        /* Time format for strftime.  */
142 #define T_FMT                   T_FMT
143   T_FMT_AMPM,                   /* 12-hour time format for strftime.  */
144 #define T_FMT_AMPM              T_FMT_AMPM
145
146   ERA,                          /* Alternate era.  */
147 #define ERA                     ERA
148   __ERA_YEAR,                   /* Year in alternate era format.  */
149 #ifdef __USE_GNU
150 # define ERA_YEAR               __ERA_YEAR
151 #endif
152   ERA_D_FMT,                    /* Date in alternate era format.  */
153 #define ERA_D_FMT               ERA_D_FMT
154   ALT_DIGITS,                   /* Alternate symbols for digits.  */
155 #define ALT_DIGITS              ALT_DIGITS
156   ERA_D_T_FMT,                  /* Date and time in alternate era format.  */
157 #define ERA_D_T_FMT             ERA_D_T_FMT
158   ERA_T_FMT,                    /* Time in alternate era format.  */
159 #define ERA_T_FMT               ERA_T_FMT
160
161 #if 0
162   _NL_TIME_ERA_NUM_ENTRIES,     /* Number entries in the era arrays.  */
163   _NL_TIME_ERA_ENTRIES,         /* Structure with era entries in usable form.*/
164
165   _NL_WABDAY_1,         /* Sun */
166   _NL_WABDAY_2,
167   _NL_WABDAY_3,
168   _NL_WABDAY_4,
169   _NL_WABDAY_5,
170   _NL_WABDAY_6,
171   _NL_WABDAY_7,
172
173   /* Long-named days of the week. */
174   _NL_WDAY_1,           /* Sunday */
175   _NL_WDAY_2,           /* Monday */
176   _NL_WDAY_3,           /* Tuesday */
177   _NL_WDAY_4,           /* Wednesday */
178   _NL_WDAY_5,           /* Thursday */
179   _NL_WDAY_6,           /* Friday */
180   _NL_WDAY_7,           /* Saturday */
181
182   /* Abbreviated month names.  */
183   _NL_WABMON_1,         /* Jan */
184   _NL_WABMON_2,
185   _NL_WABMON_3,
186   _NL_WABMON_4,
187   _NL_WABMON_5,
188   _NL_WABMON_6,
189   _NL_WABMON_7,
190   _NL_WABMON_8,
191   _NL_WABMON_9,
192   _NL_WABMON_10,
193   _NL_WABMON_11,
194   _NL_WABMON_12,
195
196   /* Long month names.  */
197   _NL_WMON_1,           /* January */
198   _NL_WMON_2,
199   _NL_WMON_3,
200   _NL_WMON_4,
201   _NL_WMON_5,
202   _NL_WMON_6,
203   _NL_WMON_7,
204   _NL_WMON_8,
205   _NL_WMON_9,
206   _NL_WMON_10,
207   _NL_WMON_11,
208   _NL_WMON_12,
209
210   _NL_WAM_STR,          /* Ante meridian string.  */
211   _NL_WPM_STR,          /* Post meridian string.  */
212
213   _NL_WD_T_FMT,         /* Date and time format for strftime.  */
214   _NL_WD_FMT,           /* Date format for strftime.  */
215   _NL_WT_FMT,           /* Time format for strftime.  */
216   _NL_WT_FMT_AMPM,      /* 12-hour time format for strftime.  */
217
218   _NL_WERA_YEAR,        /* Year in alternate era format.  */
219   _NL_WERA_D_FMT,       /* Date in alternate era format.  */
220   _NL_WALT_DIGITS,      /* Alternate symbols for digits.  */
221   _NL_WERA_D_T_FMT,     /* Date and time in alternate era format.  */
222   _NL_WERA_T_FMT,       /* Time in alternate era format.  */
223
224   _NL_TIME_WEEK_NDAYS,
225   _NL_TIME_WEEK_1STDAY,
226   _NL_TIME_WEEK_1STWEEK,
227   _NL_TIME_FIRST_WEEKDAY,
228   _NL_TIME_FIRST_WORKDAY,
229   _NL_TIME_CAL_DIRECTION,
230   _NL_TIME_TIMEZONE,
231
232   _DATE_FMT,            /* strftime format for date.  */
233 #define _DATE_FMT       _DATE_FMT
234   _NL_W_DATE_FMT,
235
236   _NL_TIME_CODESET,
237 #endif /* 0 */
238
239   _NL_NUM_LC_TIME,      /* Number of indices in LC_TIME category.  */
240
241   /* LC_COLLATE category: text sorting.
242      This information is accessed by the strcoll and strxfrm functions.
243      These `nl_langinfo' names are used only internally.  */
244 #if 0
245   _NL_COLLATE_NRULES = _NL_ITEM (__LC_COLLATE, 0),
246   _NL_COLLATE_RULESETS,
247   _NL_COLLATE_TABLEMB,
248   _NL_COLLATE_WEIGHTMB,
249   _NL_COLLATE_EXTRAMB,
250   _NL_COLLATE_INDIRECTMB,
251   _NL_COLLATE_GAP1,
252   _NL_COLLATE_GAP2,
253   _NL_COLLATE_GAP3,
254   _NL_COLLATE_TABLEWC,
255   _NL_COLLATE_WEIGHTWC,
256   _NL_COLLATE_EXTRAWC,
257   _NL_COLLATE_INDIRECTWC,
258   _NL_COLLATE_SYMB_HASH_SIZEMB,
259   _NL_COLLATE_SYMB_TABLEMB,
260   _NL_COLLATE_SYMB_EXTRAMB,
261   _NL_COLLATE_COLLSEQMB,
262   _NL_COLLATE_COLLSEQWC,
263   _NL_COLLATE_CODESET,
264   _NL_NUM_LC_COLLATE,
265 #endif
266
267   /* LC_CTYPE category: character classification.
268      This information is accessed by the functions in <ctype.h>.
269      These `nl_langinfo' names are used only internally.  */
270 #if 0
271   _NL_CTYPE_CLASS = _NL_ITEM (__LC_CTYPE, 0),
272   _NL_CTYPE_TOUPPER,
273   _NL_CTYPE_GAP1,
274   _NL_CTYPE_TOLOWER,
275   _NL_CTYPE_GAP2,
276   _NL_CTYPE_CLASS32,
277   _NL_CTYPE_GAP3,
278   _NL_CTYPE_GAP4,
279   _NL_CTYPE_GAP5,
280   _NL_CTYPE_GAP6,
281   _NL_CTYPE_CLASS_NAMES,
282   _NL_CTYPE_MAP_NAMES,
283   _NL_CTYPE_WIDTH,
284   _NL_CTYPE_MB_CUR_MAX,
285   _NL_CTYPE_CODESET_NAME,
286   CODESET = _NL_CTYPE_CODESET_NAME,
287 #define CODESET                 CODESET
288   _NL_CTYPE_TOUPPER32,
289   _NL_CTYPE_TOLOWER32,
290   _NL_CTYPE_CLASS_OFFSET,
291   _NL_CTYPE_MAP_OFFSET,
292   _NL_CTYPE_INDIGITS_MB_LEN,
293   _NL_CTYPE_INDIGITS0_MB,
294   _NL_CTYPE_INDIGITS1_MB,
295   _NL_CTYPE_INDIGITS2_MB,
296   _NL_CTYPE_INDIGITS3_MB,
297   _NL_CTYPE_INDIGITS4_MB,
298   _NL_CTYPE_INDIGITS5_MB,
299   _NL_CTYPE_INDIGITS6_MB,
300   _NL_CTYPE_INDIGITS7_MB,
301   _NL_CTYPE_INDIGITS8_MB,
302   _NL_CTYPE_INDIGITS9_MB,
303   _NL_CTYPE_INDIGITS_WC_LEN,
304   _NL_CTYPE_INDIGITS0_WC,
305   _NL_CTYPE_INDIGITS1_WC,
306   _NL_CTYPE_INDIGITS2_WC,
307   _NL_CTYPE_INDIGITS3_WC,
308   _NL_CTYPE_INDIGITS4_WC,
309   _NL_CTYPE_INDIGITS5_WC,
310   _NL_CTYPE_INDIGITS6_WC,
311   _NL_CTYPE_INDIGITS7_WC,
312   _NL_CTYPE_INDIGITS8_WC,
313   _NL_CTYPE_INDIGITS9_WC,
314   _NL_CTYPE_OUTDIGIT0_MB,
315   _NL_CTYPE_OUTDIGIT1_MB,
316   _NL_CTYPE_OUTDIGIT2_MB,
317   _NL_CTYPE_OUTDIGIT3_MB,
318   _NL_CTYPE_OUTDIGIT4_MB,
319   _NL_CTYPE_OUTDIGIT5_MB,
320   _NL_CTYPE_OUTDIGIT6_MB,
321   _NL_CTYPE_OUTDIGIT7_MB,
322   _NL_CTYPE_OUTDIGIT8_MB,
323   _NL_CTYPE_OUTDIGIT9_MB,
324   _NL_CTYPE_OUTDIGIT0_WC,
325   _NL_CTYPE_OUTDIGIT1_WC,
326   _NL_CTYPE_OUTDIGIT2_WC,
327   _NL_CTYPE_OUTDIGIT3_WC,
328   _NL_CTYPE_OUTDIGIT4_WC,
329   _NL_CTYPE_OUTDIGIT5_WC,
330   _NL_CTYPE_OUTDIGIT6_WC,
331   _NL_CTYPE_OUTDIGIT7_WC,
332   _NL_CTYPE_OUTDIGIT8_WC,
333   _NL_CTYPE_OUTDIGIT9_WC,
334   _NL_CTYPE_TRANSLIT_TAB_SIZE,
335   _NL_CTYPE_TRANSLIT_FROM_IDX,
336   _NL_CTYPE_TRANSLIT_FROM_TBL,
337   _NL_CTYPE_TRANSLIT_TO_IDX,
338   _NL_CTYPE_TRANSLIT_TO_TBL,
339   _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN,
340   _NL_CTYPE_TRANSLIT_DEFAULT_MISSING,
341   _NL_CTYPE_TRANSLIT_IGNORE_LEN,
342   _NL_CTYPE_TRANSLIT_IGNORE,
343   _NL_CTYPE_EXTRA_MAP_1,
344   _NL_CTYPE_EXTRA_MAP_2,
345   _NL_CTYPE_EXTRA_MAP_3,
346   _NL_CTYPE_EXTRA_MAP_4,
347   _NL_CTYPE_EXTRA_MAP_5,
348   _NL_CTYPE_EXTRA_MAP_6,
349   _NL_CTYPE_EXTRA_MAP_7,
350   _NL_CTYPE_EXTRA_MAP_8,
351   _NL_CTYPE_EXTRA_MAP_9,
352   _NL_CTYPE_EXTRA_MAP_10,
353   _NL_CTYPE_EXTRA_MAP_11,
354   _NL_CTYPE_EXTRA_MAP_12,
355   _NL_CTYPE_EXTRA_MAP_13,
356   _NL_CTYPE_EXTRA_MAP_14,
357   _NL_NUM_LC_CTYPE,
358 #else  /* 0 */
359   _NL_CTYPE_OUTDIGIT0_MB = _NL_ITEM (__LC_CTYPE, 0),
360   _NL_CTYPE_OUTDIGIT1_MB,
361   _NL_CTYPE_OUTDIGIT2_MB,
362   _NL_CTYPE_OUTDIGIT3_MB,
363   _NL_CTYPE_OUTDIGIT4_MB,
364   _NL_CTYPE_OUTDIGIT5_MB,
365   _NL_CTYPE_OUTDIGIT6_MB,
366   _NL_CTYPE_OUTDIGIT7_MB,
367   _NL_CTYPE_OUTDIGIT8_MB,
368   _NL_CTYPE_OUTDIGIT9_MB,
369   _NL_CTYPE_CODESET_NAME,       /* uClibc note: MUST BE LAST ENTRY!!! */
370   CODESET = _NL_CTYPE_CODESET_NAME,
371 #define CODESET                 CODESET
372 #endif /* 0 */
373
374   /* LC_MONETARY category: formatting of monetary quantities.
375      These items each correspond to a member of `struct lconv',
376      defined in <locale.h>.  */
377   __INT_CURR_SYMBOL = _NL_ITEM (__LC_MONETARY, 0),
378 #ifdef __USE_GNU
379 # define INT_CURR_SYMBOL        __INT_CURR_SYMBOL
380 #endif
381   __CURRENCY_SYMBOL,
382 #ifdef __USE_GNU
383 # define CURRENCY_SYMBOL        __CURRENCY_SYMBOL
384 #endif
385   __MON_DECIMAL_POINT,
386 #ifdef __USE_GNU
387 # define MON_DECIMAL_POINT      __MON_DECIMAL_POINT
388 #endif
389   __MON_THOUSANDS_SEP,
390 #ifdef __USE_GNU
391 # define MON_THOUSANDS_SEP      __MON_THOUSANDS_SEP
392 #endif
393   __MON_GROUPING,
394 #ifdef __USE_GNU
395 # define MON_GROUPING           __MON_GROUPING
396 #endif
397   __POSITIVE_SIGN,
398 #ifdef __USE_GNU
399 # define POSITIVE_SIGN          __POSITIVE_SIGN
400 #endif
401   __NEGATIVE_SIGN,
402 #ifdef __USE_GNU
403 # define NEGATIVE_SIGN          __NEGATIVE_SIGN
404 #endif
405   __INT_FRAC_DIGITS,
406 #ifdef __USE_GNU
407 # define INT_FRAC_DIGITS        __INT_FRAC_DIGITS
408 #endif
409   __FRAC_DIGITS,
410 #ifdef __USE_GNU
411 # define FRAC_DIGITS            __FRAC_DIGITS
412 #endif
413   __P_CS_PRECEDES,
414 #ifdef __USE_GNU
415 # define P_CS_PRECEDES          __P_CS_PRECEDES
416 #endif
417   __P_SEP_BY_SPACE,
418 #ifdef __USE_GNU
419 # define P_SEP_BY_SPACE         __P_SEP_BY_SPACE
420 #endif
421   __N_CS_PRECEDES,
422 #ifdef __USE_GNU
423 # define N_CS_PRECEDES          __N_CS_PRECEDES
424 #endif
425   __N_SEP_BY_SPACE,
426 #ifdef __USE_GNU
427 # define N_SEP_BY_SPACE         __N_SEP_BY_SPACE
428 #endif
429   __P_SIGN_POSN,
430 #ifdef __USE_GNU
431 # define P_SIGN_POSN            __P_SIGN_POSN
432 #endif
433   __N_SIGN_POSN,
434 #ifdef __USE_GNU
435 # define N_SIGN_POSN            __N_SIGN_POSN
436 #endif
437   __INT_P_CS_PRECEDES,
438 #ifdef __USE_GNU
439 # define INT_P_CS_PRECEDES      __INT_P_CS_PRECEDES
440 #endif
441   __INT_P_SEP_BY_SPACE,
442 #ifdef __USE_GNU
443 # define INT_P_SEP_BY_SPACE     __INT_P_SEP_BY_SPACE
444 #endif
445   __INT_N_CS_PRECEDES,
446 #ifdef __USE_GNU
447 # define INT_N_CS_PRECEDES      __INT_N_CS_PRECEDES
448 #endif
449   __INT_N_SEP_BY_SPACE,
450 #ifdef __USE_GNU
451 # define INT_N_SEP_BY_SPACE     __INT_N_SEP_BY_SPACE
452 #endif
453   __INT_P_SIGN_POSN,
454 #ifdef __USE_GNU
455 # define INT_P_SIGN_POSN        __INT_P_SIGN_POSN
456 #endif
457   __INT_N_SIGN_POSN,
458 #ifdef __USE_GNU
459 # define INT_N_SIGN_POSN        __INT_N_SIGN_POSN
460 #endif
461
462   _NL_MONETARY_CRNCYSTR,
463 #define CRNCYSTR                _NL_MONETARY_CRNCYSTR
464
465 #if 0
466   _NL_MONETARY_DUO_INT_CURR_SYMBOL,
467   _NL_MONETARY_DUO_CURRENCY_SYMBOL,
468   _NL_MONETARY_DUO_INT_FRAC_DIGITS,
469   _NL_MONETARY_DUO_FRAC_DIGITS,
470   _NL_MONETARY_DUO_P_CS_PRECEDES,
471   _NL_MONETARY_DUO_P_SEP_BY_SPACE,
472   _NL_MONETARY_DUO_N_CS_PRECEDES,
473   _NL_MONETARY_DUO_N_SEP_BY_SPACE,
474   _NL_MONETARY_DUO_INT_P_CS_PRECEDES,
475   _NL_MONETARY_DUO_INT_P_SEP_BY_SPACE,
476   _NL_MONETARY_DUO_INT_N_CS_PRECEDES,
477   _NL_MONETARY_DUO_INT_N_SEP_BY_SPACE,
478   _NL_MONETARY_DUO_P_SIGN_POSN,
479   _NL_MONETARY_DUO_N_SIGN_POSN,
480   _NL_MONETARY_DUO_INT_P_SIGN_POSN,
481   _NL_MONETARY_DUO_INT_N_SIGN_POSN,
482   _NL_MONETARY_UNO_VALID_FROM,
483   _NL_MONETARY_UNO_VALID_TO,
484   _NL_MONETARY_DUO_VALID_FROM,
485   _NL_MONETARY_DUO_VALID_TO,
486   _NL_MONETARY_CONVERSION_RATE,
487   _NL_MONETARY_DECIMAL_POINT_WC,
488   _NL_MONETARY_THOUSANDS_SEP_WC,
489   _NL_MONETARY_CODESET,
490 #endif /* 0 */
491   _NL_NUM_LC_MONETARY,
492
493   /* LC_NUMERIC category: formatting of numbers.
494      These also correspond to members of `struct lconv'; see <locale.h>.  */
495   __DECIMAL_POINT = _NL_ITEM (__LC_NUMERIC, 0),
496 #ifdef __USE_GNU
497 # define DECIMAL_POINT          __DECIMAL_POINT
498 #endif
499   RADIXCHAR = __DECIMAL_POINT,
500 #define RADIXCHAR               RADIXCHAR
501   __THOUSANDS_SEP,
502 #ifdef __USE_GNU
503 # define THOUSANDS_SEP          __THOUSANDS_SEP
504 #endif
505   THOUSEP = __THOUSANDS_SEP,
506 #define THOUSEP                 THOUSEP
507   __GROUPING,
508 #ifdef __USE_GNU
509 # define GROUPING               __GROUPING
510 #endif
511 #if 0
512   _NL_NUMERIC_DECIMAL_POINT_WC,
513   _NL_NUMERIC_THOUSANDS_SEP_WC,
514   _NL_NUMERIC_CODESET,
515 #endif
516   _NL_NUM_LC_NUMERIC,
517
518   __YESEXPR = _NL_ITEM (__LC_MESSAGES, 0), /* Regex matching ``yes'' input.  */
519 #define YESEXPR                 __YESEXPR
520   __NOEXPR,                     /* Regex matching ``no'' input.  */
521 #define NOEXPR                  __NOEXPR
522   __YESSTR,                     /* Output string for ``yes''.  */
523 #if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
524 # define YESSTR                 __YESSTR
525 #endif
526   __NOSTR,                      /* Output string for ``no''.  */
527 #if defined __USE_GNU || (defined __USE_XOPEN && !defined __USE_XOPEN2K)
528 # define NOSTR                  __NOSTR
529 #endif
530 #if 0
531   _NL_MESSAGES_CODESET,
532 #endif
533   _NL_NUM_LC_MESSAGES,
534
535 #if 0
536   _NL_PAPER_HEIGHT = _NL_ITEM (__LC_PAPER, 0),
537   _NL_PAPER_WIDTH,
538   _NL_PAPER_CODESET,
539   _NL_NUM_LC_PAPER,
540
541   _NL_NAME_NAME_FMT = _NL_ITEM (__LC_NAME, 0),
542   _NL_NAME_NAME_GEN,
543   _NL_NAME_NAME_MR,
544   _NL_NAME_NAME_MRS,
545   _NL_NAME_NAME_MISS,
546   _NL_NAME_NAME_MS,
547   _NL_NAME_CODESET,
548   _NL_NUM_LC_NAME,
549
550   _NL_ADDRESS_POSTAL_FMT = _NL_ITEM (__LC_ADDRESS, 0),
551   _NL_ADDRESS_COUNTRY_NAME,
552   _NL_ADDRESS_COUNTRY_POST,
553   _NL_ADDRESS_COUNTRY_AB2,
554   _NL_ADDRESS_COUNTRY_AB3,
555   _NL_ADDRESS_COUNTRY_CAR,
556   _NL_ADDRESS_COUNTRY_NUM,
557   _NL_ADDRESS_COUNTRY_ISBN,
558   _NL_ADDRESS_LANG_NAME,
559   _NL_ADDRESS_LANG_AB,
560   _NL_ADDRESS_LANG_TERM,
561   _NL_ADDRESS_LANG_LIB,
562   _NL_ADDRESS_CODESET,
563   _NL_NUM_LC_ADDRESS,
564
565   _NL_TELEPHONE_TEL_INT_FMT = _NL_ITEM (__LC_TELEPHONE, 0),
566   _NL_TELEPHONE_TEL_DOM_FMT,
567   _NL_TELEPHONE_INT_SELECT,
568   _NL_TELEPHONE_INT_PREFIX,
569   _NL_TELEPHONE_CODESET,
570   _NL_NUM_LC_TELEPHONE,
571
572   _NL_MEASUREMENT_MEASUREMENT = _NL_ITEM (__LC_MEASUREMENT, 0),
573   _NL_MEASUREMENT_CODESET,
574   _NL_NUM_LC_MEASUREMENT,
575
576   _NL_IDENTIFICATION_TITLE = _NL_ITEM (__LC_IDENTIFICATION, 0),
577   _NL_IDENTIFICATION_SOURCE,
578   _NL_IDENTIFICATION_ADDRESS,
579   _NL_IDENTIFICATION_CONTACT,
580   _NL_IDENTIFICATION_EMAIL,
581   _NL_IDENTIFICATION_TEL,
582   _NL_IDENTIFICATION_FAX,
583   _NL_IDENTIFICATION_LANGUAGE,
584   _NL_IDENTIFICATION_TERRITORY,
585   _NL_IDENTIFICATION_AUDIENCE,
586   _NL_IDENTIFICATION_APPLICATION,
587   _NL_IDENTIFICATION_ABBREVIATION,
588   _NL_IDENTIFICATION_REVISION,
589   _NL_IDENTIFICATION_DATE,
590   _NL_IDENTIFICATION_CATEGORY,
591   _NL_IDENTIFICATION_CODESET,
592   _NL_NUM_LC_IDENTIFICATION,
593 #endif
594   /* This marks the highest value used.  */
595   _NL_NUM
596 };
597
598
599 /* Return the current locale's value for ITEM.
600    If ITEM is invalid, an empty string is returned.
601
602    The string returned will not change until `setlocale' is called;
603    it is usually in read-only memory and cannot be modified.  */
604
605 extern char *nl_langinfo (nl_item __item) __THROW;
606
607
608 #if 0
609 /*#ifdef        __USE_GNU*/
610 /* This interface is for the extended locale model.  See <locale.h> for
611    more information.  */
612
613 /* Get locale datatype definition.  */
614 # include <xlocale.h>
615
616 /* Just like nl_langinfo but get the information from the locale object L.  */
617 extern char *__nl_langinfo_l (nl_item __item, __locale_t l);
618 #endif /* 0 */
619
620 __END_DECLS
621
622 #endif  /* langinfo.h */