• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *   http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef _LANGINFO_H
17 #define _LANGINFO_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include <features.h>
24 #include <nl_types.h>
25 
26 #define __NEED_locale_t
27 
28 #include <bits/alltypes.h>
29 
30 #define ABDAY_1 0x20000
31 #define ABDAY_2 0x20001
32 #define ABDAY_3 0x20002
33 #define ABDAY_4 0x20003
34 #define ABDAY_5 0x20004
35 #define ABDAY_6 0x20005
36 #define ABDAY_7 0x20006
37 
38 #define DAY_1 0x20007
39 #define DAY_2 0x20008
40 #define DAY_3 0x20009
41 #define DAY_4 0x2000A
42 #define DAY_5 0x2000B
43 #define DAY_6 0x2000C
44 #define DAY_7 0x2000D
45 
46 #define ABMON_1 0x2000E
47 #define ABMON_2 0x2000F
48 #define ABMON_3 0x20010
49 #define ABMON_4 0x20011
50 #define ABMON_5 0x20012
51 #define ABMON_6 0x20013
52 #define ABMON_7 0x20014
53 #define ABMON_8 0x20015
54 #define ABMON_9 0x20016
55 #define ABMON_10 0x20017
56 #define ABMON_11 0x20018
57 #define ABMON_12 0x20019
58 
59 #define MON_1 0x2001A
60 #define MON_2 0x2001B
61 #define MON_3 0x2001C
62 #define MON_4 0x2001D
63 #define MON_5 0x2001E
64 #define MON_6 0x2001F
65 #define MON_7 0x20020
66 #define MON_8 0x20021
67 #define MON_9 0x20022
68 #define MON_10 0x20023
69 #define MON_11 0x20024
70 #define MON_12 0x20025
71 
72 #define AM_STR 0x20026
73 #define PM_STR 0x20027
74 
75 #define D_T_FMT 0x20028
76 #define D_FMT 0x20029
77 #define T_FMT 0x2002A
78 #define T_FMT_AMPM 0x2002B
79 
80 #define ERA 0x2002C
81 #define ERA_D_FMT 0x2002E
82 #define ALT_DIGITS 0x2002F
83 #define ERA_D_T_FMT 0x20030
84 #define ERA_T_FMT 0x20031
85 
86 #define AM_STR_LOWER 0x20032
87 #define PM_STR_LOWER 0x20033
88 
89 #define CODESET 14
90 
91 #define CRNCYSTR 0x4000F
92 
93 #define RADIXCHAR 0x10000
94 #define THOUSEP 0x10001
95 #define YESEXPR 0x50000
96 #define NOEXPR 0x50001
97 
98 #define _NL_LOCALE_NAME(cat) (((cat)<<16) | 0xffff)
99 
100 #if defined(_GNU_SOURCE)
101 #define NL_LOCALE_NAME(cat) _NL_LOCALE_NAME(cat)
102 #endif
103 
104 #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
105 #define YESSTR 0x50002
106 #define NOSTR 0x50003
107 #endif
108 
109 char *nl_langinfo(nl_item);
110 char *nl_langinfo_l(nl_item, locale_t);
111 
112 #ifdef __cplusplus
113 }
114 #endif
115 
116 #endif
117