This source file includes following definitions.
- _MessagesLocale
- _MonetaryLocale
- _NumericLocale
- _TimeLocale
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 #ifndef _SYS_LOCALEDEF_H_
35 #define _SYS_LOCALEDEF_H_
36
37 #include <sys/param.h>
38 #include <sys/types.h>
39
40 typedef struct
41 {
42 char *yesexpr;
43 char *noexpr;
44 char *yesstr;
45 char *nostr;
46 } _MessagesLocale;
47
48 extern const _MessagesLocale *_CurrentMessagesLocale;
49 extern const _MessagesLocale _DefaultMessagesLocale;
50
51
52 typedef struct
53 {
54 char *int_curr_symbol;
55 char *currency_symbol;
56 char *mon_decimal_point;
57 char *mon_thousands_sep;
58 char *mon_grouping;
59 char *positive_sign;
60 char *negative_sign;
61 char int_frac_digits;
62 char frac_digits;
63 char p_cs_precedes;
64 char p_sep_by_space;
65 char n_cs_precedes;
66 char n_sep_by_space;
67 char p_sign_posn;
68 char n_sign_posn;
69 } _MonetaryLocale;
70
71 extern const _MonetaryLocale *_CurrentMonetaryLocale;
72 extern const _MonetaryLocale _DefaultMonetaryLocale;
73
74
75 typedef struct
76 {
77 const char *decimal_point;
78 const char *thousands_sep;
79 const char *grouping;
80 } _NumericLocale;
81
82 extern const _NumericLocale *_CurrentNumericLocale;
83 extern const _NumericLocale _DefaultNumericLocale;
84
85
86 typedef struct {
87 const char *abday[7];
88 const char *day[7];
89 const char *abmon[12];
90 const char *mon[12];
91 const char *am_pm[2];
92 const char *d_t_fmt;
93 const char *d_fmt;
94 const char *t_fmt;
95 const char *t_fmt_ampm;
96 } _TimeLocale;
97
98 extern const _TimeLocale *_CurrentTimeLocale;
99 extern const _TimeLocale _DefaultTimeLocale;
100
101 #endif