blob: 519c061294c0f96fa3bffa40ec9ec3f1da8bd02c [file] [log] [blame]
Rich Felker0b44a032011-02-12 00:22:29 -05001#ifndef _LANGINFO_H
2#define _LANGINFO_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
Rich Felker8f035962013-10-20 22:01:51 -04008#include <features.h>
Rich Felker9448b052013-07-22 11:22:36 -04009#include <nl_types.h>
10
Rich Felker74eea622011-02-14 18:41:25 -050011#define __NEED_locale_t
Rich Felker0b44a032011-02-12 00:22:29 -050012
13#include <bits/alltypes.h>
14
15#define ABDAY_1 0x20000
16#define ABDAY_2 0x20001
17#define ABDAY_3 0x20002
18#define ABDAY_4 0x20003
19#define ABDAY_5 0x20004
20#define ABDAY_6 0x20005
21#define ABDAY_7 0x20006
22
23#define DAY_1 0x20007
24#define DAY_2 0x20008
25#define DAY_3 0x20009
26#define DAY_4 0x2000A
27#define DAY_5 0x2000B
28#define DAY_6 0x2000C
29#define DAY_7 0x2000D
30
31#define ABMON_1 0x2000E
32#define ABMON_2 0x2000F
33#define ABMON_3 0x20010
34#define ABMON_4 0x20011
35#define ABMON_5 0x20012
36#define ABMON_6 0x20013
37#define ABMON_7 0x20014
38#define ABMON_8 0x20015
39#define ABMON_9 0x20016
40#define ABMON_10 0x20017
41#define ABMON_11 0x20018
42#define ABMON_12 0x20019
43
44#define MON_1 0x2001A
45#define MON_2 0x2001B
46#define MON_3 0x2001C
47#define MON_4 0x2001D
48#define MON_5 0x2001E
49#define MON_6 0x2001F
50#define MON_7 0x20020
51#define MON_8 0x20021
52#define MON_9 0x20022
53#define MON_10 0x20023
54#define MON_11 0x20024
55#define MON_12 0x20025
56
57#define AM_STR 0x20026
58#define PM_STR 0x20027
59
60#define D_T_FMT 0x20028
61#define D_FMT 0x20029
62#define T_FMT 0x2002A
63#define T_FMT_AMPM 0x2002B
64
65#define ERA 0x2002C
66#define ERA_D_FMT 0x2002E
67#define ALT_DIGITS 0x2002F
68#define ERA_D_T_FMT 0x20030
69#define ERA_T_FMT 0x20031
70
71#define CODESET 14
72
73#define CRNCYSTR 0x4000F
74
75#define RADIXCHAR 0x10000
76#define THOUSEP 0x10001
77#define YESEXPR 0x50000
78#define NOEXPR 0x50001
Rich Felker8f035962013-10-20 22:01:51 -040079
Rich Felker947d3302017-07-31 23:08:27 -040080#define _NL_LOCALE_NAME(cat) (((cat)<<16) | 0xffff)
81
82#if defined(_GNU_SOURCE)
83#define NL_LOCALE_NAME(cat) _NL_LOCALE_NAME(cat)
84#endif
85
Rich Felker8f035962013-10-20 22:01:51 -040086#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
Rich Felker0b44a032011-02-12 00:22:29 -050087#define YESSTR 0x50002
88#define NOSTR 0x50003
Rich Felker8f035962013-10-20 22:01:51 -040089#endif
Rich Felker0b44a032011-02-12 00:22:29 -050090
91char *nl_langinfo(nl_item);
Rich Felker74eea622011-02-14 18:41:25 -050092char *nl_langinfo_l(nl_item, locale_t);
Rich Felker0b44a032011-02-12 00:22:29 -050093
94#ifdef __cplusplus
95}
96#endif
97
98#endif