ReactOS  0.4.15-dev-3175-g222acf5
locale.h
Go to the documentation of this file.
1 
6 #ifndef _INC_LOCALE
7 #define _INC_LOCALE
8 
9 #include <crtdefs.h>
10 
11 #pragma pack(push,_CRT_PACKING)
12 
13 #ifdef __cplusplus
14 extern "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 {
32  char *grouping;
37  char *mon_grouping;
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
65  __cdecl
67  _In_ int _Flag);
68 
70  char*
71  __cdecl
72  setlocale(
73  _In_ int _Category,
74  _In_opt_z_ const char *_Locale);
75 
77  _CRTIMP
78  struct lconv*
79  __cdecl
80  localeconv(void);
81 
83  _locale_t
84  __cdecl
85  _get_current_locale(void);
86 
88  _locale_t
89  __cdecl
91  _In_ int _Category,
92  _In_z_ const char *_Locale);
93 
94  void
95  __cdecl
98 
100  _locale_t
101  __cdecl
102  __get_current_locale(void);
103 
105  _locale_t
106  __cdecl
108  _In_ int _Category,
109  _In_z_ const char *_Locale);
110 
111  void
112  __cdecl
115 
116 _CRTIMP
117 unsigned int
118 __cdecl
120 
121 _CRTIMP
122 unsigned int
123 __cdecl
124 ___lc_codepage_func(void);
125 
126 #ifndef _WLOCALE_DEFINED
127 #define _WLOCALE_DEFINED
129  _CRTIMP
130  wchar_t*
131  __cdecl
132  _wsetlocale(
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
char * mon_thousands_sep
Definition: locale.h:36
#define _In_opt_
Definition: ms_sal.h:309
#define __cdecl
Definition: accygwin.h:79
#define _In_opt_z_
Definition: ms_sal.h:314
char * mon_decimal_point
Definition: locale.h:35
#define _CRTIMP
Definition: crtdefs.h:72
_Check_return_opt_ char *__cdecl setlocale(_In_ int _Category, _In_opt_z_ const char *_Locale)
_Check_return_ _locale_t __cdecl __get_current_locale(void)
char p_sign_posn
Definition: locale.h:46
char * negative_sign
Definition: locale.h:39
char * grouping
Definition: locale.h:32
char * decimal_point
Definition: locale.h:30
char * mon_grouping
Definition: locale.h:37
_Check_return_opt_ _CRTIMP wchar_t *__cdecl _wsetlocale(_In_ int _Category, _In_opt_z_ const wchar_t *_Locale)
char int_frac_digits
Definition: locale.h:40
#define _In_
Definition: ms_sal.h:308
char n_sep_by_space
Definition: locale.h:45
Definition: locale.h:29
char n_sign_posn
Definition: locale.h:47
#define _In_z_
Definition: ms_sal.h:313
char * positive_sign
Definition: locale.h:38
char * currency_symbol
Definition: locale.h:34
_Check_return_opt_ _locale_t __cdecl _get_current_locale(void)
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:158
char p_sep_by_space
Definition: locale.h:43
_Check_return_opt_ _locale_t __cdecl _create_locale(_In_ int _Category, _In_z_ const char *_Locale)
char p_cs_precedes
Definition: locale.h:42
char * int_curr_symbol
Definition: locale.h:33
_Check_return_opt_ _CRTIMP struct lconv *__cdecl localeconv(void)
Definition: locale.c:601
#define _Check_return_
Definition: ms_sal.h:557
char * thousands_sep
Definition: locale.h:31
#define _Check_return_opt_
Definition: crtdefs.h:453
_Check_return_opt_ int __cdecl _configthreadlocale(_In_ int _Flag)
_Check_return_ _locale_t __cdecl __create_locale(_In_ int _Category, _In_z_ const char *_Locale)
void __cdecl __free_locale(_In_opt_ _locale_t _Locale)
_CRTIMP unsigned int __cdecl ___lc_codepage_func(void)
Definition: locale.c:627
char frac_digits
Definition: locale.h:41
_CRTIMP unsigned int __cdecl ___lc_collate_cp_func(void)
Definition: locale.c:635
char n_cs_precedes
Definition: locale.h:44
void __cdecl _free_locale(_In_opt_ _locale_t _Locale)