ReactOS 0.4.15-dev-7906-g1b85a5f
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
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 {
32 char *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
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: accygwin.h:79
#define _Check_return_opt_
Definition: crtdefs.h:453
#define _CRTIMP
Definition: crtdefs.h:72
_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:635
_Check_return_opt_ int __cdecl _configthreadlocale(_In_ int _Flag)
_Check_return_opt_ _locale_t __cdecl _create_locale(_In_ int _Category, _In_z_ const char *_Locale)
_Check_return_opt_ _CRTIMP struct lconv *__cdecl localeconv(void)
Definition: locale.c:601
void __cdecl _free_locale(_In_opt_ _locale_t _Locale)
_CRTIMP unsigned int __cdecl ___lc_codepage_func(void)
Definition: locale.c:627
_Check_return_opt_ _locale_t __cdecl _get_current_locale(void)
_Check_return_opt_ _CRTIMP wchar_t *__cdecl _wsetlocale(_In_ int _Category, _In_opt_z_ const wchar_t *_Locale)
#define _In_z_
Definition: ms_sal.h:313
#define _Check_return_
Definition: ms_sal.h:557
#define _In_opt_z_
Definition: ms_sal.h:314
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159
Definition: locale.h:29
char * mon_grouping
Definition: locale.h:37
char * mon_decimal_point
Definition: locale.h:35
char p_sign_posn
Definition: locale.h:46
char p_sep_by_space
Definition: locale.h:43
char * negative_sign
Definition: locale.h:39
char * decimal_point
Definition: locale.h:30
char * grouping
Definition: locale.h:32
char * mon_thousands_sep
Definition: locale.h:36
char int_frac_digits
Definition: locale.h:40
char * positive_sign
Definition: locale.h:38
char frac_digits
Definition: locale.h:41
char n_sep_by_space
Definition: locale.h:45
char * int_curr_symbol
Definition: locale.h:33
char n_cs_precedes
Definition: locale.h:44
char n_sign_posn
Definition: locale.h:47
char * thousands_sep
Definition: locale.h:31
char p_cs_precedes
Definition: locale.h:42
char * currency_symbol
Definition: locale.h:34
#define setlocale(n, s)
Definition: locale.h:46