summaryrefslogtreecommitdiff
path: root/include/langinfo.h
blob: 7ccb9f2f352e6e1247a07e803ebccc71347494d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
#ifndef __LANGINFO_H
#define __LANGINFO_H

typedef struct __locale_t *locale_t;
typedef int nl_item;

#define CODESET	   0
#define D_T_FMT	   1
#define D_FMT	   2
#define T_FMT	   3
#define T_FMT_AMPM 4
#define AM_STR	   5
#define PM_STR	   6

#define DAY_1 7
#define DAY_2 8
#define DAY_3 9
#define DAY_4 10
#define DAY_5 11
#define DAY_6 12
#define DAY_7 13

#define ABDAY_1 14
#define ABDAY_2 15
#define ABDAY_3 16
#define ABDAY_4 17
#define ABDAY_5 18
#define ABDAY_6 19
#define ABDAY_7 20

#define MON_1  21
#define MON_2  22
#define MON_3  23
#define MON_4  24
#define MON_5  25
#define MON_6  26
#define MON_7  27
#define MON_8  28
#define MON_9  29
#define MON_10 30
#define MON_11 31
#define MON_12 32

#define ABMON_1	 33
#define ABMON_2	 34
#define ABMON_3	 35
#define ABMON_4	 36
#define ABMON_5	 37
#define ABMON_6	 38
#define ABMON_7	 39
#define ABMON_8	 40
#define ABMON_9	 41
#define ABMON_10 42
#define ABMON_11 43
#define ABMON_12 44

#define ERA	    45
#define ERA_D_FMT   46
#define ERA_D_T_FMT 47
#define ERA_T_FMT   48
#define ALT_DIGITS  49

#define RADIXCHAR 50
#define THOUSEP	  51

#define YESEXPR 52
#define NOEXPR	53

#define CRNCYSTR 54

#define ALTMON_1  55
#define ALTMON_2  56
#define ALTMON_3  57
#define ALTMON_4  58
#define ALTMON_5  59
#define ALTMON_6  60
#define ALTMON_7  61
#define ALTMON_8  62
#define ALTMON_9  63
#define ALTMON_10 64
#define ALTMON_11 65
#define ALTMON_12 66

#define ABALTMON_1  67
#define ABALTMON_2  68
#define ABALTMON_3  69
#define ABALTMON_4  70
#define ABALTMON_5  71
#define ABALTMON_6  72
#define ABALTMON_7  73
#define ABALTMON_8  74
#define ABALTMON_9  75
#define ABALTMON_10 76
#define ABALTMON_11 77
#define ABALTMON_12 78

char *nl_langinfo(nl_item);
char *nl_langinfo_l(nl_item, locale_t);

#endif