ReactOS  0.4.14-dev-604-gcfdd483
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 #ifndef NULL
18 #ifdef __cplusplus
19 #define NULL 0
20 #else
21 #define NULL ((void *)0)
22 #endif
23 #endif
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 
32 #define LC_MIN LC_ALL
33 #define LC_MAX LC_TIME
34 
35 #ifndef _LCONV_DEFINED
36 #define _LCONV_DEFINED
37  struct lconv {
40  char *grouping;
45  char *mon_grouping;
56  };
57 #endif
58 
59 #ifndef _CONFIG_LOCALE_SWT
60 #define _CONFIG_LOCALE_SWT
61 
62 #define _ENABLE_PER_THREAD_LOCALE 0x1
63 #define _DISABLE_PER_THREAD_LOCALE 0x2
64 #define _ENABLE_PER_THREAD_LOCALE_GLOBAL 0x10
65 #define _DISABLE_PER_THREAD_LOCALE_GLOBAL 0x20
66 #define _ENABLE_PER_THREAD_LOCALE_NEW 0x100
67 #define _DISABLE_PER_THREAD_LOCALE_NEW 0x200
68 
69 #endif
70 
72  int
73  __cdecl
75  _In_ int _Flag);
76 
78  char*
79  __cdecl
80  setlocale(
81  _In_ int _Category,
82  _In_opt_z_ const char *_Locale);
83 
85  _CRTIMP
86  struct lconv*
87  __cdecl
88  localeconv(void);
89 
91  _locale_t
92  __cdecl
93  _get_current_locale(void);
94 
96  _locale_t
97  __cdecl
99  _In_ int _Category,
100  _In_z_ const char *_Locale);
101 
102  void
103  __cdecl
104  _free_locale(
106 
108  _locale_t
109  __cdecl
110  __get_current_locale(void);
111 
113  _locale_t
114  __cdecl
116  _In_ int _Category,
117  _In_z_ const char *_Locale);
118 
119  void
120  __cdecl
123 
124 #ifndef _WLOCALE_DEFINED
125 #define _WLOCALE_DEFINED
127  _CRTIMP
128  wchar_t*
129  __cdecl
130  _wsetlocale(
131  _In_ int _Category,
132  _In_opt_z_ const wchar_t *_Locale);
133 #endif
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #pragma pack(pop)
140 #endif
char * mon_thousands_sep
Definition: locale.h:44
#define _In_opt_z_
Definition: no_sal2.h:221
#define __cdecl
Definition: accygwin.h:79
char * mon_decimal_point
Definition: locale.h:43
#define _CRTIMP
Definition: crtdefs.h:60
_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:54
char * negative_sign
Definition: locale.h:47
char * grouping
Definition: locale.h:40
char * decimal_point
Definition: locale.h:38
#define _Check_return_
Definition: no_sal2.h:13
char * mon_grouping
Definition: locale.h:45
#define _In_opt_
Definition: no_sal2.h:213
_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:48
char n_sep_by_space
Definition: locale.h:53
Definition: locale.h:37
char n_sign_posn
Definition: locale.h:55
char * positive_sign
Definition: locale.h:46
char * currency_symbol
Definition: locale.h:42
_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:166
char p_sep_by_space
Definition: locale.h:51
_Check_return_opt_ _locale_t __cdecl _create_locale(_In_ int _Category, _In_z_ const char *_Locale)
char p_cs_precedes
Definition: locale.h:50
char * int_curr_symbol
Definition: locale.h:41
_Check_return_opt_ _CRTIMP struct lconv *__cdecl localeconv(void)
Definition: locale.c:601
#define _In_
Definition: no_sal2.h:204
char * thousands_sep
Definition: locale.h:39
_Check_return_opt_ int __cdecl _configthreadlocale(_In_ int _Flag)
#define _Check_return_opt_
Definition: specstrings.h:68
#define _In_z_
Definition: no_sal2.h:239
_Check_return_ _locale_t __cdecl __create_locale(_In_ int _Category, _In_z_ const char *_Locale)
void __cdecl __free_locale(_In_opt_ _locale_t _Locale)
char frac_digits
Definition: locale.h:49
char n_cs_precedes
Definition: locale.h:52
void __cdecl _free_locale(_In_opt_ _locale_t _Locale)