ReactOS 0.4.16-dev-197-g92996da
c_locale_dummy.c
Go to the documentation of this file.
1/*
2 * Copyright (c) 1999
3 * Silicon Graphics Computer Systems, Inc.
4 *
5 * Copyright (c) 1999
6 * Boris Fomitchev
7 *
8 * This material is provided "as is", with absolutely no warranty expressed
9 * or implied. Any use is at your own risk.
10 *
11 * Permission to use or copy this software for any purpose is hereby granted
12 * without fee, provided the above notices are retained on all copies.
13 * Permission to modify the code and to distribute modified code is granted,
14 * provided the above notices are retained, and a notice that the code was
15 * modified is included with the above copyright notice.
16 *
17 */
18
19/* This is a "stub" implementation of the "c_locale.h" interface,
20 intended for operating systems where we have not yet written
21 a real implementation. A C++ library using this stub implementation
22 is still standard-conforming, since the C++ standard does not require
23 that any locales other than "C" be supported.
24*/
25
26#include <string.h>
27#include <wchar.h>
28#include <ctype.h>
29#include <wctype.h>
30#include <limits.h>
31
32#if defined (_STLP_USE_SAFE_STRING_FUNCTIONS)
33# define _STLP_STRNCPY(D, DS, S, C) strncpy_s(D, DS, S, C)
34# if !defined (_STLP_NO_WCHAR_T)
35# define _STLP_WCSNCPY(D, DS, S, C) wcsncpy_s(D, DS, S, C)
36# endif
37#else
38# define _STLP_STRNCPY(D, DS, S, C) strncpy(D, S, C)
39# if !defined (_STLP_NO_WCHAR_T)
40# define _STLP_WCSNCPY(D, DS, S, C) wcsncpy(D, S, C)
41# endif
42#endif
43
44static const char *_C_name = "C";
45static const char *_empty_str = "";
46#ifndef _STLP_NO_WCHAR_T
47static const wchar_t *_empty_wstr = L"";
48#endif
49
51
52/* Framework functions */
53
54void _Locale_init(void) {
55 /* Ctype table for the ASCII character set. */
56 char c;
57 /* We might never reach 128 when char is signed. */
58 for (c = 0; /* c != 128 */; ++c) {
59 if (isalpha(c)) ctable[(unsigned char)c] |= _Locale_ALPHA;
60 if (iscntrl(c)) ctable[(unsigned char)c] |= _Locale_CNTRL;
61 if (isdigit(c)) ctable[(unsigned char)c] |= _Locale_DIGIT;
62 if (isprint(c)) ctable[(unsigned char)c] |= _Locale_PRINT;
63 if (ispunct(c)) ctable[(unsigned char)c] |= _Locale_PUNCT;
64 if (isspace(c)) ctable[(unsigned char)c] |= _Locale_SPACE;
65 if (isxdigit(c)) ctable[(unsigned char)c] |= _Locale_XDIGIT;
66 if (isupper(c)) ctable[(unsigned char)c] |= _Locale_UPPER;
67 if (islower(c)) ctable[(unsigned char)c] |= _Locale_LOWER;
68 if (c == 127) break;
69 }
70
71 /* ASCII is a 7-bit code, so everything else is non-ASCII. */
72 memset(&(ctable[128]), 0, 128 * sizeof(_Locale_mask_t));
73}
74
75void _Locale_final(void)
76{}
77
78void* _Locale_create(const char* name, int *__err_code) {
79 if (name[0] == 'C' && name[1] == 0)
80 { return (void*)0x1; }
81 *__err_code = _STLP_LOC_NO_PLATFORM_SUPPORT; return 0;
82}
83
85 struct _Locale_name_hint* hint, int *__err_code)
86{ return (struct _Locale_ctype*)_Locale_create(name, __err_code); }
87
89 struct _Locale_name_hint* hint, int *__err_code)
90{ return (struct _Locale_codecvt*)_Locale_create(name, __err_code); }
91
93 struct _Locale_name_hint* hint, int *__err_code)
94{ return (struct _Locale_numeric*)_Locale_create(name, __err_code); }
95
97 struct _Locale_name_hint* hint, int *__err_code)
98{ return (struct _Locale_time*)_Locale_create(name, __err_code); }
99
101 struct _Locale_name_hint* hint, int *__err_code)
102{ return (struct _Locale_collate*)_Locale_create(name, __err_code); }
103
105 struct _Locale_name_hint* hint, int *__err_code)
106{ return (struct _Locale_monetary*)_Locale_create(name, __err_code); }
107
108struct _Locale_messages* _Locale_messages_create(const char *name,
109 struct _Locale_name_hint* hint, int *__err_code)
110{ return (struct _Locale_messages*)_Locale_create(name, __err_code); }
111
112const char *_Locale_ctype_default(char* buf) { return _C_name; }
113const char *_Locale_numeric_default(char * buf) { return _C_name; }
114const char *_Locale_time_default(char* buf) { return _C_name; }
115const char *_Locale_collate_default(char* buf) { return _C_name; }
116const char *_Locale_monetary_default(char* buf) { return _C_name; }
117const char *_Locale_messages_default(char* buf) { return _C_name; }
118
119char const* _Locale_ctype_name(const struct _Locale_ctype *lctype, char* buf)
120{ return _C_name; }
121
122char const* _Locale_codecvt_name(const struct _Locale_codecvt *lcodecvt, char* buf)
123{ return _C_name; }
124
125char const* _Locale_numeric_name(const struct _Locale_numeric *lnum, char* buf)
126{ return _C_name; }
127
128char const* _Locale_time_name(const struct _Locale_time *ltime, char* buf)
129{ return _C_name; }
130
131char const* _Locale_collate_name(const struct _Locale_collate *lcol, char* buf)
132{ return _C_name; }
133
134char const* _Locale_monetary_name(const struct _Locale_monetary *lmon, char* buf)
135{ return _C_name; }
136
137char const* _Locale_messages_name(const struct _Locale_messages *lmes, char* buf)
138{ return _C_name; }
139
143void _Locale_time_destroy(struct _Locale_time *ltime) {}
146void _Locale_messages_destroy(struct _Locale_messages *lmes) {}
147
148static char const* _Locale_extract_name(const char* name, int *__err_code) {
149 // When the request is the default locale or the "C" locale we answer "C".
150 if (name[0] == 0 ||
151 (name[0] == 'C' && name[1] == 0))
152 { return _C_name; }
153 *__err_code = _STLP_LOC_NO_PLATFORM_SUPPORT; return 0;
154}
155
156char const* _Locale_extract_ctype_name(const char *name, char *buf,
157 struct _Locale_name_hint* hint, int *__err_code)
158{ return _Locale_extract_name(name, __err_code); }
159
160char const* _Locale_extract_numeric_name(const char *name, char *buf,
161 struct _Locale_name_hint* hint, int *__err_code)
162{ return _Locale_extract_name(name, __err_code); }
163
164char const* _Locale_extract_time_name(const char*name, char *buf,
165 struct _Locale_name_hint* hint, int *__err_code)
166{ return _Locale_extract_name(name, __err_code); }
167
168char const* _Locale_extract_collate_name(const char *name, char *buf,
169 struct _Locale_name_hint* hint, int *__err_code)
170{ return _Locale_extract_name(name, __err_code); }
171
172char const* _Locale_extract_monetary_name(const char *name, char *buf,
173 struct _Locale_name_hint* hint, int *__err_code)
174{ return _Locale_extract_name(name, __err_code); }
175
176char const* _Locale_extract_messages_name(const char *name, char *buf,
177 struct _Locale_name_hint* hint, int *__err_code)
178{ return _Locale_extract_name(name, __err_code); }
179
181{ return 0; }
183{ return 0; }
185{ return 0; }
187{ return 0; }
189{ return 0; }
190struct _Locale_name_hint* _Locale_get_messages_hint(struct _Locale_messages* messages)
191{ return 0; }
192
193/* ctype */
196 return ctable;
197}
198
199int _Locale_toupper(struct _Locale_ctype*lctype, int c)
200{ return toupper(c); }
201
202int _Locale_tolower(struct _Locale_ctype*lctype, int c)
203{ return tolower(c); }
204
205#ifndef _STLP_NO_WCHAR_T
208 if ((mask & _Locale_ALPHA) != 0 && iswalpha(wc))
210
211 if ((mask & _Locale_CNTRL) != 0 && iswcntrl(wc))
213
214 if ((mask & _Locale_DIGIT) != 0 && iswdigit(wc))
216
217 if ((mask & _Locale_PRINT) != 0 && iswprint(wc))
219
220 if ((mask & _Locale_PUNCT) != 0 && iswpunct(wc))
222
223 if ((mask & _Locale_SPACE) != 0 && iswspace(wc))
225
226 if ((mask & _Locale_XDIGIT) != 0 && iswxdigit(wc))
228
229 if ((mask & _Locale_UPPER) != 0 && iswupper(wc))
231
232 if ((mask & _Locale_LOWER) != 0 && iswlower(wc))
234
235 return ret;
236}
237
239{ return towlower(wc); }
240
242{ return towupper(wc); }
243
244int _WLocale_mb_cur_max (struct _Locale_codecvt *lcodecvt) { return 1; }
245int _WLocale_mb_cur_min (struct _Locale_codecvt *lcodecvt) { return 1; }
246int _WLocale_is_stateless (struct _Locale_codecvt *lcodecvt) { return 1; }
247
248size_t _WLocale_mbtowc(struct _Locale_codecvt *lcodecvt,
249 wchar_t *to,
250 const char *from, size_t n,
251 mbstate_t *st)
252{ *to = *from; return 1; }
253
254size_t _WLocale_wctomb(struct _Locale_codecvt *lcodecvt,
255 char *to, size_t n,
256 const wchar_t c,
257 mbstate_t *st)
258{ *to = (char)c; return 1; }
259
260size_t _WLocale_unshift(struct _Locale_codecvt *lcodecvt,
261 mbstate_t *st,
262 char *buf, size_t n, char ** next)
263{ *next = buf; return 0; }
264#endif
265
266/* Collate */
268 const char* s1, size_t n1, const char* s2, size_t n2) {
269 int ret = 0;
270 char buf1[64], buf2[64];
271 while (n1 > 0 || n2 > 0) {
272 size_t bufsize1 = n1 < 63 ? n1 : 63;
273 size_t bufsize2 = n2 < 63 ? n2 : 63;
274 _STLP_STRNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0;
275 _STLP_STRNCPY(buf2, 64, s2, bufsize2); buf2[bufsize2] = 0;
276
277 ret = strcmp(buf1, buf2);
278 if (ret != 0) return ret < 0 ? -1 : 1;
279 s1 += bufsize1; n1 -= bufsize1;
280 s2 += bufsize2; n2 -= bufsize2;
281 }
282 return ret == 0 ? 0 : (ret < 0 ? -1 : 1);
283}
284
285#ifndef _STLP_NO_WCHAR_T
286
288 const wchar_t* s1, size_t n1, const wchar_t* s2, size_t n2) {
289 int ret = 0;
290 wchar_t buf1[64], buf2[64];
291 while (n1 > 0 || n2 > 0) {
292 size_t bufsize1 = n1 < 63 ? n1 : 63;
293 size_t bufsize2 = n2 < 63 ? n2 : 63;
294 _STLP_WCSNCPY(buf1, 64, s1, bufsize1); buf1[bufsize1] = 0;
295 _STLP_WCSNCPY(buf2, 64, s2, bufsize2); buf2[bufsize2] = 0;
296
297 ret = wcscmp(buf1, buf2);
298 if (ret != 0) return ret < 0 ? -1 : 1;
299 s1 += bufsize1; n1 -= bufsize1;
300 s2 += bufsize2; n2 -= bufsize2;
301 }
302 return ret == 0 ? 0 : (ret < 0 ? -1 : 1);
303}
304
305#endif
306
308 char* dest, size_t dest_n,
309 const char* src, size_t src_n) {
310 if (dest != 0) {
311 _STLP_STRNCPY(dest, dest_n, src, dest_n - 1); dest[dest_n - 1] = 0;
312 }
313 return src_n;
314}
315
316#ifndef _STLP_NO_WCHAR_T
317
319 wchar_t* dest, size_t dest_n,
320 const wchar_t* src, size_t src_n) {
321 if (dest != 0) {
322 _STLP_WCSNCPY(dest, dest_n, src, dest_n - 1); dest[dest_n - 1] = 0;
323 }
324 return src_n;
325}
326
327#endif
328
329/* Numeric */
330
332{ return '.'; }
334{ return ','; }
335const char* _Locale_grouping(struct _Locale_numeric * lnum)
336{ return _empty_str; }
337const char * _Locale_true(struct _Locale_numeric * lnum)
338{ return "true"; }
339const char * _Locale_false(struct _Locale_numeric * lnum)
340{ return "false"; }
341
342#ifndef _STLP_NO_WCHAR_T
344{ return L'.'; }
346{ return L','; }
347const wchar_t * _WLocale_true(struct _Locale_numeric* lnum, wchar_t* buf, size_t bufSize)
348{ return L"true"; }
349const wchar_t * _WLocale_false(struct _Locale_numeric* lnum, wchar_t* buf, size_t bufSize)
350{ return L"false"; }
351#endif
352
353/* Monetary */
354
356{ return _empty_str; }
358{ return _empty_str; }
360{ return '.'; }
362{ return ','; }
363const char* _Locale_mon_grouping(struct _Locale_monetary * lmon)
364{ return _empty_str; }
365const char* _Locale_positive_sign(struct _Locale_monetary * lmon)
366{ return _empty_str; }
367const char* _Locale_negative_sign(struct _Locale_monetary * lmon)
368{ return _empty_str; }
370{ return 0; }
372{ return 0; }
374{ return CHAR_MAX; }
376{ return CHAR_MAX; }
378{ return CHAR_MAX; }
380{ return CHAR_MAX; }
382{ return CHAR_MAX; }
384{ return CHAR_MAX; }
385
386#ifndef _STLP_NO_WCHAR_T
387const wchar_t* _WLocale_int_curr_symbol(struct _Locale_monetary * lmon,
388 wchar_t* buf, size_t bufSize)
389{ return _empty_wstr; }
390const wchar_t* _WLocale_currency_symbol(struct _Locale_monetary * lmon,
391 wchar_t* buf, size_t bufSize)
392{ return _empty_wstr; }
394{ return L'.'; }
396{ return L','; }
397const wchar_t* _WLocale_positive_sign(struct _Locale_monetary * lmon,
398 wchar_t* buf, size_t bufSize)
399{ return _empty_wstr; }
400const wchar_t* _WLocale_negative_sign(struct _Locale_monetary * lmon,
401 wchar_t* buf, size_t bufSize)
402{ return _empty_wstr; }
403#endif
404
405/* Time */
406static const char* full_monthname[] =
407{ "January", "February", "March", "April", "May", "June",
408 "July", "August", "September", "October", "November", "December" };
409const char * _Locale_full_monthname(struct _Locale_time * ltime, int n)
410{ return full_monthname[n]; }
411
412static const char* abbrev_monthname[] =
413{ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
414 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };
415const char * _Locale_abbrev_monthname(struct _Locale_time * ltime, int n)
416{ return abbrev_monthname[n]; }
417
418static const char* full_dayname[] =
419{ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" };
420const char * _Locale_full_dayofweek(struct _Locale_time * ltime, int n)
421{ return full_dayname[n]; }
422
423static const char* abbrev_dayname[] =
424{ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" };
425const char * _Locale_abbrev_dayofweek(struct _Locale_time * ltime, int n)
426{ return abbrev_dayname[n]; }
427
428const char* _Locale_d_t_fmt(struct _Locale_time* ltime)
429{ return "%m/%d/%y"; }
430const char* _Locale_d_fmt(struct _Locale_time* ltime)
431{ return "%m/%d/%y"; }
432const char* _Locale_t_fmt(struct _Locale_time* ltime)
433{ return "%H:%M:%S"; }
434const char* _Locale_long_d_t_fmt(struct _Locale_time* ltime)
435{ return _empty_str; }
436const char* _Locale_long_d_fmt(struct _Locale_time* ltime)
437{ return _empty_str; }
438const char* _Locale_am_str(struct _Locale_time* ltime)
439{ return "AM"; }
440const char* _Locale_pm_str(struct _Locale_time* ltime)
441{ return "PM"; }
442
443#ifndef _STLP_NO_WCHAR_T
444static const wchar_t* full_wmonthname[] =
445{ L"January", L"February", L"March", L"April", L"May", L"June",
446 L"July", L"August", L"September", L"October", L"November", L"December" };
447const wchar_t * _WLocale_full_monthname(struct _Locale_time * ltime, int n,
448 wchar_t* buf, size_t bufSize)
449{ return full_wmonthname[n]; }
450
451static const wchar_t* abbrev_wmonthname[] =
452{ L"Jan", L"Feb", L"Mar", L"Apr", L"May", L"Jun",
453 L"Jul", L"Aug", L"Sep", L"Oct", L"Nov", L"Dec" };
454const wchar_t * _WLocale_abbrev_monthname(struct _Locale_time * ltime, int n,
455 wchar_t* buf, size_t bufSize)
456{ return abbrev_wmonthname[n]; }
457
458static const wchar_t* full_wdayname[] =
459{ L"Sunday", L"Monday", L"Tuesday", L"Wednesday", L"Thursday", L"Friday", L"Saturday" };
460const wchar_t * _WLocale_full_dayofweek(struct _Locale_time * ltime, int n,
461 wchar_t* buf, size_t bufSize)
462{ return full_wdayname[n]; }
463
464static const wchar_t* abbrev_wdayname[] =
465{ L"Sun", L"Mon", L"Tue", L"Wed", L"Thu", L"Fri", L"Sat" };
466const wchar_t * _WLocale_abbrev_dayofweek(struct _Locale_time * ltime, int n,
467 wchar_t* buf, size_t bufSize)
468{ return abbrev_wdayname[n]; }
469
470const wchar_t* _WLocale_am_str(struct _Locale_time* ltime,
471 wchar_t* buf, size_t bufSize)
472{ return L"AM"; }
473const wchar_t* _WLocale_pm_str(struct _Locale_time* ltime,
474 wchar_t* buf, size_t bufSize)
475{ return L"PM"; }
476#endif
477
478/* Messages */
479
480nl_catd_type _Locale_catopen(struct _Locale_messages* lmes, const char* name)
481{ return -1; }
482void _Locale_catclose(struct _Locale_messages* lmes, nl_catd_type cat) {}
483const char* _Locale_catgets(struct _Locale_messages* lmes, nl_catd_type cat,
484 int setid, int msgid, const char *dfault)
485{ return dfault; }
int wint_t
Definition: _apple.h:38
#define _STLP_MARK_PARAMETER_AS_UNUSED(X)
Definition: _dm.h:68
#define isspace(c)
Definition: acclib.h:69
#define islower(c)
Definition: acclib.h:72
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
#define isalpha(c)
Definition: acclib.h:74
#define isdigit(c)
Definition: acclib.h:68
#define isprint(c)
Definition: acclib.h:73
#define isxdigit(c)
Definition: acclib.h:70
int toupper(int c)
Definition: utclib.c:881
#define isupper(c)
Definition: acclib.h:71
int tolower(int c)
Definition: utclib.c:902
const wchar_t * _WLocale_abbrev_monthname(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
const char * _Locale_positive_sign(struct _Locale_monetary *lmon)
char _Locale_mon_thousands_sep(struct _Locale_monetary *lmon)
struct _Locale_name_hint * _Locale_get_collate_hint(struct _Locale_collate *collate)
static const char * abbrev_dayname[]
int _Locale_toupper(struct _Locale_ctype *lctype, int c)
char const * _Locale_extract_messages_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
static const char * abbrev_monthname[]
const char * _Locale_pm_str(struct _Locale_time *ltime)
const wchar_t * _WLocale_currency_symbol(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
static const wchar_t * _empty_wstr
const char * _Locale_am_str(struct _Locale_time *ltime)
const char * _Locale_full_dayofweek(struct _Locale_time *ltime, int n)
char const * _Locale_monetary_name(const struct _Locale_monetary *lmon, char *buf)
const char * _Locale_abbrev_monthname(struct _Locale_time *ltime, int n)
#define _STLP_WCSNCPY(D, DS, S, C)
void _Locale_catclose(struct _Locale_messages *lmes, nl_catd_type cat)
struct _Locale_monetary * _Locale_monetary_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
void * _Locale_create(const char *name, int *__err_code)
const wchar_t * _WLocale_full_monthname(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
struct _Locale_name_hint * _Locale_get_ctype_hint(struct _Locale_ctype *ctype)
char _Locale_decimal_point(struct _Locale_numeric *lnum)
char const * _Locale_extract_monetary_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
struct _Locale_time * _Locale_time_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
int _Locale_n_sign_posn(struct _Locale_monetary *lmon)
const wchar_t * _WLocale_false(struct _Locale_numeric *lnum, wchar_t *buf, size_t bufSize)
void _Locale_codecvt_destroy(struct _Locale_codecvt *lcodecvt)
struct _Locale_name_hint * _Locale_get_numeric_hint(struct _Locale_numeric *numeric)
struct _Locale_numeric * _Locale_numeric_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
char const * _Locale_ctype_name(const struct _Locale_ctype *lctype, char *buf)
static const wchar_t * abbrev_wdayname[]
static const char * _empty_str
const char * _Locale_false(struct _Locale_numeric *lnum)
void _Locale_time_destroy(struct _Locale_time *ltime)
int _WLocale_mb_cur_max(struct _Locale_codecvt *lcodecvt)
#define _STLP_STRNCPY(D, DS, S, C)
struct _Locale_name_hint * _Locale_get_messages_hint(struct _Locale_messages *messages)
const wchar_t * _WLocale_pm_str(struct _Locale_time *ltime, wchar_t *buf, size_t bufSize)
int _Locale_strcmp(struct _Locale_collate *lcol, const char *s1, size_t n1, const char *s2, size_t n2)
void _Locale_final(void)
const wchar_t * _WLocale_negative_sign(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
int _Locale_p_cs_precedes(struct _Locale_monetary *lmon)
const char * _Locale_long_d_t_fmt(struct _Locale_time *ltime)
struct _Locale_name_hint * _Locale_get_time_hint(struct _Locale_time *time)
int _Locale_p_sign_posn(struct _Locale_monetary *lmon)
char const * _Locale_collate_name(const struct _Locale_collate *lcol, char *buf)
int _WLocale_strcmp(struct _Locale_collate *lcol, const wchar_t *s1, size_t n1, const wchar_t *s2, size_t n2)
const char * _Locale_abbrev_dayofweek(struct _Locale_time *ltime, int n)
char const * _Locale_extract_ctype_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
const wchar_t * _WLocale_abbrev_dayofweek(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
const char * _Locale_time_default(char *buf)
const char * _Locale_t_fmt(struct _Locale_time *ltime)
void _Locale_numeric_destroy(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_full_dayofweek(struct _Locale_time *ltime, int n, wchar_t *buf, size_t bufSize)
char _Locale_frac_digits(struct _Locale_monetary *lmon)
const char * _Locale_int_curr_symbol(struct _Locale_monetary *lmon)
const char * _Locale_d_t_fmt(struct _Locale_time *ltime)
const char * _Locale_mon_grouping(struct _Locale_monetary *lmon)
void _Locale_init(void)
static const wchar_t * full_wmonthname[]
static const char * full_monthname[]
static const wchar_t * abbrev_wmonthname[]
const char * _Locale_catgets(struct _Locale_messages *lmes, nl_catd_type cat, int setid, int msgid, const char *dfault)
const char * _Locale_ctype_default(char *buf)
const char * _Locale_long_d_fmt(struct _Locale_time *ltime)
size_t _WLocale_unshift(struct _Locale_codecvt *lcodecvt, mbstate_t *st, char *buf, size_t n, char **next)
const char * _Locale_numeric_default(char *buf)
wchar_t _WLocale_thousands_sep(struct _Locale_numeric *lnum)
void _Locale_monetary_destroy(struct _Locale_monetary *lmon)
static const wchar_t * full_wdayname[]
const char * _Locale_monetary_default(char *buf)
const _Locale_mask_t * _Locale_ctype_table(struct _Locale_ctype *lctype)
int _Locale_tolower(struct _Locale_ctype *lctype, int c)
wint_t _WLocale_tolower(struct _Locale_ctype *lctype, wint_t wc)
size_t _WLocale_strxfrm(struct _Locale_collate *lcol, wchar_t *dest, size_t dest_n, const wchar_t *src, size_t src_n)
char const * _Locale_time_name(const struct _Locale_time *ltime, char *buf)
void _Locale_messages_destroy(struct _Locale_messages *lmes)
const char * _Locale_d_fmt(struct _Locale_time *ltime)
char _Locale_int_frac_digits(struct _Locale_monetary *lmon)
int _Locale_p_sep_by_space(struct _Locale_monetary *lmon)
const char * _Locale_negative_sign(struct _Locale_monetary *lmon)
static char const * _Locale_extract_name(const char *name, int *__err_code)
static _Locale_mask_t ctable[256]
int _Locale_n_sep_by_space(struct _Locale_monetary *lmon)
const char * _Locale_messages_default(char *buf)
size_t _Locale_strxfrm(struct _Locale_collate *lcol, char *dest, size_t dest_n, const char *src, size_t src_n)
struct _Locale_name_hint * _Locale_get_monetary_hint(struct _Locale_monetary *monetary)
char _Locale_mon_decimal_point(struct _Locale_monetary *lmon)
static const char * full_dayname[]
char const * _Locale_extract_collate_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
int _Locale_n_cs_precedes(struct _Locale_monetary *lmon)
struct _Locale_messages * _Locale_messages_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
size_t _WLocale_mbtowc(struct _Locale_codecvt *lcodecvt, wchar_t *to, const char *from, size_t n, mbstate_t *st)
struct _Locale_collate * _Locale_collate_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
wchar_t _WLocale_mon_thousands_sep(struct _Locale_monetary *lmon)
char const * _Locale_extract_numeric_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
char _Locale_thousands_sep(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_am_str(struct _Locale_time *ltime, wchar_t *buf, size_t bufSize)
const char * _Locale_true(struct _Locale_numeric *lnum)
void _Locale_collate_destroy(struct _Locale_collate *lcol)
const char * _Locale_full_monthname(struct _Locale_time *ltime, int n)
struct _Locale_ctype * _Locale_ctype_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
char const * _Locale_codecvt_name(const struct _Locale_codecvt *lcodecvt, char *buf)
const char * _Locale_grouping(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_positive_sign(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
static const char * _C_name
int _WLocale_mb_cur_min(struct _Locale_codecvt *lcodecvt)
wchar_t _WLocale_decimal_point(struct _Locale_numeric *lnum)
const wchar_t * _WLocale_true(struct _Locale_numeric *lnum, wchar_t *buf, size_t bufSize)
wchar_t _WLocale_mon_decimal_point(struct _Locale_monetary *lmon)
_Locale_mask_t _WLocale_ctype(struct _Locale_ctype *lctype, wint_t wc, _Locale_mask_t mask)
char const * _Locale_messages_name(const struct _Locale_messages *lmes, char *buf)
wint_t _WLocale_toupper(struct _Locale_ctype *lctype, wint_t wc)
size_t _WLocale_wctomb(struct _Locale_codecvt *lcodecvt, char *to, size_t n, const wchar_t c, mbstate_t *st)
struct _Locale_codecvt * _Locale_codecvt_create(const char *name, struct _Locale_name_hint *hint, int *__err_code)
const char * _Locale_collate_default(char *buf)
void _Locale_ctype_destroy(struct _Locale_ctype *lctype)
nl_catd_type _Locale_catopen(struct _Locale_messages *lmes, const char *name)
char const * _Locale_numeric_name(const struct _Locale_numeric *lnum, char *buf)
const wchar_t * _WLocale_int_curr_symbol(struct _Locale_monetary *lmon, wchar_t *buf, size_t bufSize)
const char * _Locale_currency_symbol(struct _Locale_monetary *lmon)
int _WLocale_is_stateless(struct _Locale_codecvt *lcodecvt)
char const * _Locale_extract_time_name(const char *name, char *buf, struct _Locale_name_hint *hint, int *__err_code)
Definition: _ctype.h:58
unsigned char
Definition: typeof.h:29
GLdouble n
Definition: glext.h:7729
GLenum src
Definition: glext.h:6340
const GLubyte * c
Definition: glext.h:8905
GLenum GLint GLuint mask
Definition: glext.h:6028
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
GLuint GLsizei bufSize
Definition: glext.h:6040
#define _Locale_CNTRL
Definition: c_locale.h:122
#define _Locale_LOWER
Definition: c_locale.h:124
#define _Locale_XDIGIT
Definition: c_locale.h:128
#define _Locale_SPACE
Definition: c_locale.h:120
#define _Locale_PUNCT
Definition: c_locale.h:127
#define _Locale_ALPHA
Definition: c_locale.h:125
#define _Locale_UPPER
Definition: c_locale.h:123
#define _Locale_DIGIT
Definition: c_locale.h:126
#define _Locale_PRINT
Definition: c_locale.h:121
#define iswcntrl(_c)
Definition: ctype.h:674
#define iswspace(_c)
Definition: ctype.h:669
_Check_return_ _CRTIMP int __cdecl ispunct(_In_ int _C)
#define iswupper(_c)
Definition: ctype.h:665
#define iswdigit(_c)
Definition: ctype.h:667
_Check_return_ _CRTIMP int __cdecl iscntrl(_In_ int _C)
#define iswlower(_c)
Definition: ctype.h:666
#define iswprint(_c)
Definition: ctype.h:672
#define iswxdigit(_c)
Definition: ctype.h:668
#define iswpunct(_c)
Definition: ctype.h:670
#define iswalpha(_c)
Definition: ctype.h:664
#define CHAR_MAX
Definition: limits.h:32
#define c
Definition: ke_i.h:80
unsigned short int _Locale_mask_t
Definition: c_locale.h:63
int nl_catd_type
Definition: c_locale.h:47
#define _STLP_LOC_NO_PLATFORM_SUPPORT
Definition: c_locale.h:102
struct S1 s1
struct S2 s2
__u16 time
Definition: mkdosfs.c:8
static char * dest
Definition: rtl.c:135
#define L(x)
Definition: ntvdm.h:50
static unsigned __int64 next
Definition: rand_nt.c:6
int n2
Definition: dwarfget.c:147
int n1
Definition: dwarfget.c:147
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define memset(x, y, z)
Definition: compat.h:39
CardRegion * from
Definition: spigame.cpp:19
Definition: name.c:39
#define towlower(c)
Definition: wctype.h:97
#define towupper(c)
Definition: wctype.h:99
DWORD hint
Definition: vfdcmd.c:88
int ret