]>
Commit | Line | Data |
---|---|---|
1ab65677 BK |
1 | // std::time_get, std::time_put implementation, GNU version -*- C++ -*- |
2 | ||
fea4065d | 3 | // Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. |
1ab65677 BK |
4 | // |
5 | // This file is part of the GNU ISO C++ Library. This library is free | |
6 | // software; you can redistribute it and/or modify it under the | |
7 | // terms of the GNU General Public License as published by the | |
8 | // Free Software Foundation; either version 2, or (at your option) | |
9 | // any later version. | |
10 | ||
11 | // This library is distributed in the hope that it will be useful, | |
12 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | // GNU General Public License for more details. | |
15 | ||
16 | // You should have received a copy of the GNU General Public License along | |
17 | // with this library; see the file COPYING. If not, write to the Free | |
18 | // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, | |
19 | // USA. | |
20 | ||
21 | // As a special exception, you may use this file as part of a free software | |
22 | // library without restriction. Specifically, if other files instantiate | |
23 | // templates or use macros or inline functions from this file, or you compile | |
24 | // this file and link it with other files to produce an executable, this | |
25 | // file does not by itself cause the resulting executable to be covered by | |
26 | // the GNU General Public License. This exception does not however | |
27 | // invalidate any other reasons why the executable file might be covered by | |
28 | // the GNU General Public License. | |
29 | ||
30 | // | |
31 | // ISO C++ 14882: 22.2.5.1.2 - time_get virtual functions | |
32 | // ISO C++ 14882: 22.2.5.3.2 - time_put virtual functions | |
33 | // | |
34 | ||
35 | // Written by Benjamin Kosnik <bkoz@redhat.com> | |
36 | ||
37 | #include <locale> | |
6aa43d99 | 38 | #include <bits/c++locale_internal.h> |
1ab65677 BK |
39 | |
40 | namespace std | |
41 | { | |
da5c0f6e BK |
42 | template<> |
43 | void | |
44 | __timepunct<char>:: | |
d3a193e3 BK |
45 | _M_put(char* __s, size_t __maxlen, const char* __format, |
46 | const tm* __tm) const | |
da5c0f6e | 47 | { |
99ffa1e3 | 48 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) |
89671b70 | 49 | __strftime_l(__s, __maxlen, __format, __tm, _M_c_locale_timepunct); |
da5c0f6e | 50 | #else |
6d030676 PC |
51 | char* __old = strdup(setlocale(LC_ALL, NULL)); |
52 | setlocale(LC_ALL, _M_name_timepunct); | |
da5c0f6e | 53 | strftime(__s, __maxlen, __format, __tm); |
4b9aaf63 | 54 | setlocale(LC_ALL, __old); |
6d030676 | 55 | free(__old); |
da5c0f6e BK |
56 | #endif |
57 | } | |
58 | ||
1ab65677 BK |
59 | template<> |
60 | void | |
61 | __timepunct<char>::_M_initialize_timepunct(__c_locale __cloc) | |
62 | { | |
fea4065d BK |
63 | if (!_M_data) |
64 | _M_data = new __timepunct_cache<char>; | |
65 | ||
aa53f832 | 66 | if (!__cloc) |
1ab65677 BK |
67 | { |
68 | // "C" locale | |
8ae81136 | 69 | _M_c_locale_timepunct = _S_get_c_locale(); |
89671b70 | 70 | |
fea4065d BK |
71 | _M_data->_M_date_format = "%m/%d/%y"; |
72 | _M_data->_M_date_era_format = "%m/%d/%y"; | |
73 | _M_data->_M_time_format = "%H:%M:%S"; | |
74 | _M_data->_M_time_era_format = "%H:%M:%S"; | |
75 | _M_data->_M_date_time_format = ""; | |
76 | _M_data->_M_date_time_era_format = ""; | |
77 | _M_data->_M_am = "AM"; | |
78 | _M_data->_M_pm = "PM"; | |
79 | _M_data->_M_am_pm_format = ""; | |
da5c0f6e | 80 | |
1ab65677 | 81 | // Day names, starting with "C"'s Sunday. |
fea4065d BK |
82 | _M_data->_M_day1 = "Sunday"; |
83 | _M_data->_M_day2 = "Monday"; | |
84 | _M_data->_M_day3 = "Tuesday"; | |
85 | _M_data->_M_day4 = "Wednesday"; | |
86 | _M_data->_M_day5 = "Thursday"; | |
87 | _M_data->_M_day6 = "Friday"; | |
88 | _M_data->_M_day7 = "Saturday"; | |
1ab65677 BK |
89 | |
90 | // Abbreviated day names, starting with "C"'s Sun. | |
fea4065d BK |
91 | _M_data->_M_aday1 = "Sun"; |
92 | _M_data->_M_aday2 = "Mon"; | |
93 | _M_data->_M_aday3 = "Tue"; | |
94 | _M_data->_M_aday4 = "Wed"; | |
95 | _M_data->_M_aday5 = "Thu"; | |
96 | _M_data->_M_aday6 = "Fri"; | |
97 | _M_data->_M_aday7 = "Sat"; | |
1ab65677 BK |
98 | |
99 | // Month names, starting with "C"'s January. | |
fea4065d BK |
100 | _M_data->_M_month01 = "January"; |
101 | _M_data->_M_month02 = "February"; | |
102 | _M_data->_M_month03 = "March"; | |
103 | _M_data->_M_month04 = "April"; | |
104 | _M_data->_M_month05 = "May"; | |
105 | _M_data->_M_month06 = "June"; | |
106 | _M_data->_M_month07 = "July"; | |
107 | _M_data->_M_month08 = "August"; | |
108 | _M_data->_M_month09 = "September"; | |
109 | _M_data->_M_month10 = "October"; | |
110 | _M_data->_M_month11 = "November"; | |
111 | _M_data->_M_month12 = "December"; | |
1ab65677 BK |
112 | |
113 | // Abbreviated month names, starting with "C"'s Jan. | |
fea4065d BK |
114 | _M_data->_M_amonth01 = "Jan"; |
115 | _M_data->_M_amonth02 = "Feb"; | |
116 | _M_data->_M_amonth03 = "Mar"; | |
117 | _M_data->_M_amonth04 = "Apr"; | |
118 | _M_data->_M_amonth05 = "May"; | |
119 | _M_data->_M_amonth06 = "Jun"; | |
120 | _M_data->_M_amonth07 = "July"; | |
121 | _M_data->_M_amonth08 = "Aug"; | |
122 | _M_data->_M_amonth09 = "Sep"; | |
123 | _M_data->_M_amonth10 = "Oct"; | |
124 | _M_data->_M_amonth11 = "Nov"; | |
125 | _M_data->_M_amonth12 = "Dec"; | |
1ab65677 BK |
126 | } |
127 | else | |
128 | { | |
129 | _M_c_locale_timepunct = _S_clone_c_locale(__cloc); | |
130 | ||
fea4065d BK |
131 | _M_data->_M_date_format = __nl_langinfo_l(D_FMT, __cloc); |
132 | _M_data->_M_date_era_format = __nl_langinfo_l(ERA_D_FMT, __cloc); | |
133 | _M_data->_M_time_format = __nl_langinfo_l(T_FMT, __cloc); | |
134 | _M_data->_M_time_era_format = __nl_langinfo_l(ERA_T_FMT, __cloc); | |
135 | _M_data->_M_date_time_format = __nl_langinfo_l(D_T_FMT, __cloc); | |
136 | _M_data->_M_date_time_era_format = __nl_langinfo_l(ERA_D_T_FMT, __cloc); | |
137 | _M_data->_M_am = __nl_langinfo_l(AM_STR, __cloc); | |
138 | _M_data->_M_pm = __nl_langinfo_l(PM_STR, __cloc); | |
139 | _M_data->_M_am_pm_format = __nl_langinfo_l(T_FMT_AMPM, __cloc); | |
1ab65677 BK |
140 | |
141 | // Day names, starting with "C"'s Sunday. | |
fea4065d BK |
142 | _M_data->_M_day1 = __nl_langinfo_l(DAY_1, __cloc); |
143 | _M_data->_M_day2 = __nl_langinfo_l(DAY_2, __cloc); | |
144 | _M_data->_M_day3 = __nl_langinfo_l(DAY_3, __cloc); | |
145 | _M_data->_M_day4 = __nl_langinfo_l(DAY_4, __cloc); | |
146 | _M_data->_M_day5 = __nl_langinfo_l(DAY_5, __cloc); | |
147 | _M_data->_M_day6 = __nl_langinfo_l(DAY_6, __cloc); | |
148 | _M_data->_M_day7 = __nl_langinfo_l(DAY_7, __cloc); | |
1ab65677 BK |
149 | |
150 | // Abbreviated day names, starting with "C"'s Sun. | |
fea4065d BK |
151 | _M_data->_M_aday1 = __nl_langinfo_l(ABDAY_1, __cloc); |
152 | _M_data->_M_aday2 = __nl_langinfo_l(ABDAY_2, __cloc); | |
153 | _M_data->_M_aday3 = __nl_langinfo_l(ABDAY_3, __cloc); | |
154 | _M_data->_M_aday4 = __nl_langinfo_l(ABDAY_4, __cloc); | |
155 | _M_data->_M_aday5 = __nl_langinfo_l(ABDAY_5, __cloc); | |
156 | _M_data->_M_aday6 = __nl_langinfo_l(ABDAY_6, __cloc); | |
157 | _M_data->_M_aday7 = __nl_langinfo_l(ABDAY_7, __cloc); | |
1ab65677 BK |
158 | |
159 | // Month names, starting with "C"'s January. | |
fea4065d BK |
160 | _M_data->_M_month01 = __nl_langinfo_l(MON_1, __cloc); |
161 | _M_data->_M_month02 = __nl_langinfo_l(MON_2, __cloc); | |
162 | _M_data->_M_month03 = __nl_langinfo_l(MON_3, __cloc); | |
163 | _M_data->_M_month04 = __nl_langinfo_l(MON_4, __cloc); | |
164 | _M_data->_M_month05 = __nl_langinfo_l(MON_5, __cloc); | |
165 | _M_data->_M_month06 = __nl_langinfo_l(MON_6, __cloc); | |
166 | _M_data->_M_month07 = __nl_langinfo_l(MON_7, __cloc); | |
167 | _M_data->_M_month08 = __nl_langinfo_l(MON_8, __cloc); | |
168 | _M_data->_M_month09 = __nl_langinfo_l(MON_9, __cloc); | |
169 | _M_data->_M_month10 = __nl_langinfo_l(MON_10, __cloc); | |
170 | _M_data->_M_month11 = __nl_langinfo_l(MON_11, __cloc); | |
171 | _M_data->_M_month12 = __nl_langinfo_l(MON_12, __cloc); | |
1ab65677 BK |
172 | |
173 | // Abbreviated month names, starting with "C"'s Jan. | |
fea4065d BK |
174 | _M_data->_M_amonth01 = __nl_langinfo_l(ABMON_1, __cloc); |
175 | _M_data->_M_amonth02 = __nl_langinfo_l(ABMON_2, __cloc); | |
176 | _M_data->_M_amonth03 = __nl_langinfo_l(ABMON_3, __cloc); | |
177 | _M_data->_M_amonth04 = __nl_langinfo_l(ABMON_4, __cloc); | |
178 | _M_data->_M_amonth05 = __nl_langinfo_l(ABMON_5, __cloc); | |
179 | _M_data->_M_amonth06 = __nl_langinfo_l(ABMON_6, __cloc); | |
180 | _M_data->_M_amonth07 = __nl_langinfo_l(ABMON_7, __cloc); | |
181 | _M_data->_M_amonth08 = __nl_langinfo_l(ABMON_8, __cloc); | |
182 | _M_data->_M_amonth09 = __nl_langinfo_l(ABMON_9, __cloc); | |
183 | _M_data->_M_amonth10 = __nl_langinfo_l(ABMON_10, __cloc); | |
184 | _M_data->_M_amonth11 = __nl_langinfo_l(ABMON_11, __cloc); | |
185 | _M_data->_M_amonth12 = __nl_langinfo_l(ABMON_12, __cloc); | |
1ab65677 BK |
186 | } |
187 | } | |
188 | ||
3d7c150e | 189 | #ifdef _GLIBCXX_USE_WCHAR_T |
da5c0f6e BK |
190 | template<> |
191 | void | |
192 | __timepunct<wchar_t>:: | |
d3a193e3 BK |
193 | _M_put(wchar_t* __s, size_t __maxlen, const wchar_t* __format, |
194 | const tm* __tm) const | |
da5c0f6e | 195 | { |
99ffa1e3 | 196 | #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) |
89671b70 | 197 | __wcsftime_l(__s, __maxlen, __format, __tm, _M_c_locale_timepunct); |
da5c0f6e | 198 | #else |
6d030676 PC |
199 | char* __old = strdup(setlocale(LC_ALL, NULL)); |
200 | setlocale(LC_ALL, _M_name_timepunct); | |
da5c0f6e | 201 | wcsftime(__s, __maxlen, __format, __tm); |
4b9aaf63 | 202 | setlocale(LC_ALL, __old); |
6d030676 | 203 | free(__old); |
da5c0f6e BK |
204 | #endif |
205 | } | |
206 | ||
1ab65677 BK |
207 | template<> |
208 | void | |
209 | __timepunct<wchar_t>::_M_initialize_timepunct(__c_locale __cloc) | |
210 | { | |
fea4065d BK |
211 | if (!_M_data) |
212 | _M_data = new __timepunct_cache<wchar_t>; | |
213 | ||
aa53f832 | 214 | if (!__cloc) |
1ab65677 BK |
215 | { |
216 | // "C" locale | |
8ae81136 | 217 | _M_c_locale_timepunct = _S_get_c_locale(); |
89671b70 | 218 | |
fea4065d BK |
219 | _M_data->_M_date_format = L"%m/%d/%y"; |
220 | _M_data->_M_date_era_format = L"%m/%d/%y"; | |
221 | _M_data->_M_time_format = L"%H:%M:%S"; | |
222 | _M_data->_M_time_era_format = L"%H:%M:%S"; | |
223 | _M_data->_M_date_time_format = L""; | |
224 | _M_data->_M_date_time_era_format = L""; | |
225 | _M_data->_M_am = L"AM"; | |
226 | _M_data->_M_pm = L"PM"; | |
227 | _M_data->_M_am_pm_format = L""; | |
da5c0f6e BK |
228 | |
229 | // Day names, starting with "C"'s Sunday. | |
fea4065d BK |
230 | _M_data->_M_day1 = L"Sunday"; |
231 | _M_data->_M_day2 = L"Monday"; | |
232 | _M_data->_M_day3 = L"Tuesday"; | |
233 | _M_data->_M_day4 = L"Wednesday"; | |
234 | _M_data->_M_day5 = L"Thursday"; | |
235 | _M_data->_M_day6 = L"Friday"; | |
236 | _M_data->_M_day7 = L"Saturday"; | |
da5c0f6e BK |
237 | |
238 | // Abbreviated day names, starting with "C"'s Sun. | |
fea4065d BK |
239 | _M_data->_M_aday1 = L"Sun"; |
240 | _M_data->_M_aday2 = L"Mon"; | |
241 | _M_data->_M_aday3 = L"Tue"; | |
242 | _M_data->_M_aday4 = L"Wed"; | |
243 | _M_data->_M_aday5 = L"Thu"; | |
244 | _M_data->_M_aday6 = L"Fri"; | |
245 | _M_data->_M_aday7 = L"Sat"; | |
da5c0f6e BK |
246 | |
247 | // Month names, starting with "C"'s January. | |
fea4065d BK |
248 | _M_data->_M_month01 = L"January"; |
249 | _M_data->_M_month02 = L"February"; | |
250 | _M_data->_M_month03 = L"March"; | |
251 | _M_data->_M_month04 = L"April"; | |
252 | _M_data->_M_month05 = L"May"; | |
253 | _M_data->_M_month06 = L"June"; | |
254 | _M_data->_M_month07 = L"July"; | |
255 | _M_data->_M_month08 = L"August"; | |
256 | _M_data->_M_month09 = L"September"; | |
257 | _M_data->_M_month10 = L"October"; | |
258 | _M_data->_M_month11 = L"November"; | |
259 | _M_data->_M_month12 = L"December"; | |
da5c0f6e BK |
260 | |
261 | // Abbreviated month names, starting with "C"'s Jan. | |
fea4065d BK |
262 | _M_data->_M_amonth01 = L"Jan"; |
263 | _M_data->_M_amonth02 = L"Feb"; | |
264 | _M_data->_M_amonth03 = L"Mar"; | |
265 | _M_data->_M_amonth04 = L"Apr"; | |
266 | _M_data->_M_amonth05 = L"May"; | |
267 | _M_data->_M_amonth06 = L"Jun"; | |
268 | _M_data->_M_amonth07 = L"July"; | |
269 | _M_data->_M_amonth08 = L"Aug"; | |
270 | _M_data->_M_amonth09 = L"Sep"; | |
271 | _M_data->_M_amonth10 = L"Oct"; | |
272 | _M_data->_M_amonth11 = L"Nov"; | |
273 | _M_data->_M_amonth12 = L"Dec"; | |
1ab65677 BK |
274 | } |
275 | else | |
276 | { | |
277 | _M_c_locale_timepunct = _S_clone_c_locale(__cloc); | |
da5c0f6e | 278 | |
fea4065d BK |
279 | _M_data->_M_date_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WD_FMT, __cloc)); |
280 | _M_data->_M_date_era_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WERA_D_FMT, __cloc)); | |
281 | _M_data->_M_time_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WT_FMT, __cloc)); | |
282 | _M_data->_M_time_era_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WERA_T_FMT, __cloc)); | |
283 | _M_data->_M_date_time_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WD_T_FMT, __cloc)); | |
284 | _M_data->_M_date_time_era_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WERA_D_T_FMT, __cloc)); | |
285 | _M_data->_M_am = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WAM_STR, __cloc)); | |
286 | _M_data->_M_pm = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WPM_STR, __cloc)); | |
287 | _M_data->_M_am_pm_format = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WT_FMT_AMPM, __cloc)); | |
da5c0f6e BK |
288 | |
289 | // Day names, starting with "C"'s Sunday. | |
fea4065d BK |
290 | _M_data->_M_day1 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_1, __cloc)); |
291 | _M_data->_M_day2 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_2, __cloc)); | |
292 | _M_data->_M_day3 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_3, __cloc)); | |
293 | _M_data->_M_day4 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_4, __cloc)); | |
294 | _M_data->_M_day5 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_5, __cloc)); | |
295 | _M_data->_M_day6 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_6, __cloc)); | |
296 | _M_data->_M_day7 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WDAY_7, __cloc)); | |
da5c0f6e BK |
297 | |
298 | // Abbreviated day names, starting with "C"'s Sun. | |
fea4065d BK |
299 | _M_data->_M_aday1 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_1, __cloc)); |
300 | _M_data->_M_aday2 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_2, __cloc)); | |
301 | _M_data->_M_aday3 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_3, __cloc)); | |
302 | _M_data->_M_aday4 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_4, __cloc)); | |
303 | _M_data->_M_aday5 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_5, __cloc)); | |
304 | _M_data->_M_aday6 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_6, __cloc)); | |
305 | _M_data->_M_aday7 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABDAY_7, __cloc)); | |
da5c0f6e BK |
306 | |
307 | // Month names, starting with "C"'s January. | |
fea4065d BK |
308 | _M_data->_M_month01 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_1, __cloc)); |
309 | _M_data->_M_month02 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_2, __cloc)); | |
310 | _M_data->_M_month03 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_3, __cloc)); | |
311 | _M_data->_M_month04 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_4, __cloc)); | |
312 | _M_data->_M_month05 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_5, __cloc)); | |
313 | _M_data->_M_month06 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_6, __cloc)); | |
314 | _M_data->_M_month07 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_7, __cloc)); | |
315 | _M_data->_M_month08 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_8, __cloc)); | |
316 | _M_data->_M_month09 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_9, __cloc)); | |
317 | _M_data->_M_month10 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_10, __cloc)); | |
318 | _M_data->_M_month11 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_11, __cloc)); | |
319 | _M_data->_M_month12 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WMON_12, __cloc)); | |
da5c0f6e BK |
320 | |
321 | // Abbreviated month names, starting with "C"'s Jan. | |
fea4065d BK |
322 | _M_data->_M_amonth01 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_1, __cloc)); |
323 | _M_data->_M_amonth02 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_2, __cloc)); | |
324 | _M_data->_M_amonth03 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_3, __cloc)); | |
325 | _M_data->_M_amonth04 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_4, __cloc)); | |
326 | _M_data->_M_amonth05 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_5, __cloc)); | |
327 | _M_data->_M_amonth06 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_6, __cloc)); | |
328 | _M_data->_M_amonth07 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_7, __cloc)); | |
329 | _M_data->_M_amonth08 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_8, __cloc)); | |
330 | _M_data->_M_amonth09 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_9, __cloc)); | |
331 | _M_data->_M_amonth10 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_10, __cloc)); | |
332 | _M_data->_M_amonth11 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_11, __cloc)); | |
333 | _M_data->_M_amonth12 = reinterpret_cast<wchar_t*>(__nl_langinfo_l(_NL_WABMON_12, __cloc)); | |
1ab65677 BK |
334 | } |
335 | } | |
336 | #endif | |
337 | } |