ReactOS 0.4.16-dev-2122-g1628f5e
locale.h
Go to the documentation of this file.
1
6#ifndef _INC_LOCALE
7#define _INC_LOCALE
8
9#include <corecrt.h>
10
11#pragma pack(push,_CRT_PACKING)
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#define LC_ALL 0
18#define LC_COLLATE 1
19#define LC_CTYPE 2
20#define LC_MONETARY 3
21#define LC_NUMERIC 4
22#define LC_TIME 5
23
24#define LC_MIN LC_ALL
25#define LC_MAX LC_TIME
26
27#ifndef _LCONV_DEFINED
28#define _LCONV_DEFINED
29 struct lconv {
30 char *decimal_point;
31 char *thousands_sep;
32 char *grouping;
33 char *int_curr_symbol;
34 char *currency_symbol;
37 char *mon_grouping;
38 char *positive_sign;
39 char *negative_sign;
40 char int_frac_digits;
41 char frac_digits;
42 char p_cs_precedes;
43 char p_sep_by_space;
44 char n_cs_precedes;
45 char n_sep_by_space;
46 char p_sign_posn;
47 char n_sign_posn;
48 };
49#endif
50
51#ifndef _CONFIG_LOCALE_SWT
52#define _CONFIG_LOCALE_SWT
53
54#define _ENABLE_PER_THREAD_LOCALE 0x1
55#define _DISABLE_PER_THREAD_LOCALE 0x2
56#define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x10
57#define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x20
58#define _ENABLE_PER_THREAD_LOCALE_NEW 0x100
59#define _DISABLE_PER_THREAD_LOCALE_NEW 0x200
60
61#endif
62
64 int
67 _In_ int _Flag);
68
70 char*
73 _In_ int _Category,
74 _In_opt_z_ const char *_Locale);
75
78 struct lconv*
80 localeconv(void);
81
86
91 _In_ int _Category,
92 _In_z_ const char *_Locale);
93
94 void
98
101 __cdecl
103
106 __cdecl
108 _In_ int _Category,
109 _In_z_ const char *_Locale);
110
111 void
112 __cdecl
115
117unsigned int
120
122unsigned int
125
126#ifndef _WLOCALE_DEFINED
127#define _WLOCALE_DEFINED
129 _CRTIMP
130 wchar_t*
131 __cdecl
133 _In_ int _Category,
134 _In_opt_z_ const wchar_t *_Locale);
135#endif
136
137#ifdef __cplusplus
138}
139#endif
140
141#pragma pack(pop)
142#endif
#define __cdecl
Definition: corecrt.h:121
_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 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 _In_z_
Definition: no_sal2.h:164
#define _Check_return_
Definition: no_sal2.h:60
#define _In_opt_z_
Definition: no_sal2.h:218
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
_Check_return_ _locale_t __cdecl __create_locale(_In_ int _Category, _In_z_ const char *_Locale)
_Check_return_ _locale_t __cdecl __get_current_locale(void)
void __cdecl __free_locale(_In_opt_ _locale_t _Locale)
_CRTIMP unsigned int __cdecl ___lc_collate_cp_func(void)
Definition: locale.c:1055
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159
#define _Check_return_opt_
Definition: corecrt.h:224
#define setlocale(n, s)
Definition: locale.h:46
Definition: locale.h:37
char * mon_thousands_sep
Definition: locale.h:44
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
char int_frac_digits
Definition: locale.h:48
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
char n_sign_posn
Definition: locale.h:55
char * currency_symbol
Definition: locale.h:42
char p_cs_precedes
Definition: locale.h:50
char * thousands_sep
Definition: locale.h:39
char * negative_sign
Definition: locale.h:47
#define _CRTIMP
Definition: vcruntime.h:54