ReactOS 0.4.16-dev-2104-gb84fa49
locale.h
Go to the documentation of this file.
1/*
2 * Locale definitions
3 *
4 * Copyright 2000 Francois Gouget.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) 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 GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20#ifndef __WINE_LOCALE_H
21#define __WINE_LOCALE_H
22
23#include <corecrt.h>
24
25#define LC_ALL 0
26#define LC_COLLATE 1
27#define LC_CTYPE 2
28#define LC_MONETARY 3
29#define LC_NUMERIC 4
30#define LC_TIME 5
31#define LC_MIN LC_ALL
32#define LC_MAX LC_TIME
33
34#ifndef _LCONV_DEFINED
35#define _LCONV_DEFINED
36struct lconv
37{
40 char* grouping;
56#if _MSVCR_VER >= 100
57 wchar_t* _W_decimal_point;
58 wchar_t* _W_thousands_sep;
59 wchar_t* _W_int_curr_symbol;
60 wchar_t* _W_currency_symbol;
61 wchar_t* _W_mon_decimal_point;
62 wchar_t* _W_mon_thousands_sep;
63 wchar_t* _W_positive_sign;
64 wchar_t* _W_negative_sign;
65#endif
66};
67#endif /* _LCONV_DEFINED */
68
69struct tm;
70
71#ifndef _CONFIG_LOCALE_SWT
72#define _CONFIG_LOCALE_SWT
73
74#define _ENABLE_PER_THREAD_LOCALE 0x1
75#define _DISABLE_PER_THREAD_LOCALE 0x2
76#define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x10
77#define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x20
78#define _ENABLE_PER_THREAD_LOCALE_NEW 0x100
79#define _DISABLE_PER_THREAD_LOCALE_NEW 0x200
80
81#endif
82
83#ifdef __cplusplus
84extern "C" {
85#endif
86
87_ACRTIMP char* __cdecl setlocale(int,const char*);
88_ACRTIMP struct lconv* __cdecl localeconv(void);
89_ACRTIMP size_t __cdecl _Strftime(char*,size_t,const char*,const struct tm*,void*);
94
95_ACRTIMP unsigned int __cdecl ___lc_codepage_func(void);
96
97#ifndef _WLOCALE_DEFINED
98#define _WLOCALE_DEFINED
99_ACRTIMP wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
100#endif /* _WLOCALE_DEFINED */
101
102#ifdef __cplusplus
103}
104#endif
105
106#endif /* __WINE_LOCALE_H */
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
_ACRTIMP void __cdecl _free_locale(_locale_t)
Definition: locale.c:1183
_ACRTIMP _locale_t __cdecl _create_locale(int, const char *)
Definition: locale.c:1981
_ACRTIMP struct lconv *__cdecl localeconv(void)
Definition: locale.c:1004
_ACRTIMP _locale_t __cdecl _get_current_locale(void)
Definition: locale.c:1171
_ACRTIMP int __cdecl _configthreadlocale(int)
Definition: locale.c:1426
_ACRTIMP size_t __cdecl _Strftime(char *, size_t, const char *, const struct tm *, void *)
Definition: time.c:1528
_ACRTIMP unsigned int __cdecl ___lc_codepage_func(void)
Definition: locale.c:1047
_ACRTIMP wchar_t *__cdecl _wsetlocale(int, const wchar_t *)
Definition: locale.c:2097
#define setlocale(n, s)
Definition: locale.h:46
Definition: locale.h:37
wchar_t * _W_decimal_point
Definition: locale.h:54
char * mon_thousands_sep
Definition: locale.h:44
wchar_t * _W_mon_thousands_sep
Definition: locale.h:59
char p_sign_posn
Definition: locale.h:54
char * int_curr_symbol
Definition: locale.h:41
char p_sep_by_space
Definition: locale.h:51
char * positive_sign
Definition: locale.h:46
char * decimal_point
Definition: locale.h:38
char * grouping
Definition: locale.h:40
wchar_t * _W_thousands_sep
Definition: locale.h:55
char int_frac_digits
Definition: locale.h:48
wchar_t * _W_mon_decimal_point
Definition: locale.h:58
char frac_digits
Definition: locale.h:49
char n_sep_by_space
Definition: locale.h:53
char * mon_grouping
Definition: locale.h:45
char n_cs_precedes
Definition: locale.h:52
char * mon_decimal_point
Definition: locale.h:43
wchar_t * _W_int_curr_symbol
Definition: locale.h:56
char n_sign_posn
Definition: locale.h:55
char * currency_symbol
Definition: locale.h:42
wchar_t * _W_currency_symbol
Definition: locale.h:57
char p_cs_precedes
Definition: locale.h:50
char * thousands_sep
Definition: locale.h:39
wchar_t * _W_positive_sign
Definition: locale.h:60
char * negative_sign
Definition: locale.h:47
wchar_t * _W_negative_sign
Definition: locale.h:61