ReactOS 0.4.15-dev-5672-gf73ac17
locale.h
Go to the documentation of this file.
1#ifndef __CRT_INTERNAL_LOCALE_H
2#define __CRT_INTERNAL_LOCALE_H
3
6 unsigned int lc_codepage;
7 unsigned int lc_collate_cp;
8 unsigned long lc_handle[6];
10 struct {
11 char *locale;
12 wchar_t *wlocale;
13 int *refcount;
14 int *wrefcount;
16 int lc_clike;
17 int mb_cur_max;
21 struct lconv *lconv;
22 int *ctype1_refcount;
23 unsigned short *ctype1;
24 const unsigned short *pctype;
25 unsigned char *pclmap;
26 unsigned char *pcumap;
29
30typedef struct MSVCRT_threadmbcinfostruct {
32 int mbcodepage;
33 int ismbcodepage;
34 int mblcid;
35 unsigned short mbulinfo[6];
36 unsigned char mbctype[257];
37 char mbcasemap[256];
39
40#define MSVCRT_lconv lconv
41
44
45typedef struct MSVCRT_localeinfo_struct
46{
50
51typedef struct __lc_time_data {
52 union {
53 char *str[43];
54 struct {
55 char *short_wday[7];
56 char *wday[7];
57 char *short_mon[12];
58 char *mon[12];
59 char *am;
60 char *pm;
62 char *date;
63 char *time;
65 } str;
67 int unk[2];
68 wchar_t *wstr[43];
69 char data[1];
71
74LCID MSVCRT_locale_to_LCID(const char*, unsigned short*) DECLSPEC_HIDDEN;
75
78#define MSVCRT_locale __get_MSVCRT_locale()
80{
81 if(!global_locale)
83 return global_locale;
84}
85
90
91#endif //__CRT_INTERNAL_LOCALE_H
92
#define __cdecl
Definition: accygwin.h:79
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
LCID MSVCRT_locale_to_LCID(const char *, unsigned short *) DECLSPEC_HIDDEN
Definition: locale.c:208
MSVCRT_pthreadmbcinfo get_mbcinfo(void) DECLSPEC_HIDDEN
Definition: locale.c:364
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:354
MSVCRT__locale_t global_locale
Definition: locale.c:1495
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
Definition: locale.c:711
struct MSVCRT_threadlocaleinfostruct MSVCRT_threadlocinfo
struct __lc_time_data MSVCRT___lc_time_data
struct MSVCRT_threadmbcinfostruct MSVCRT_threadmbcinfo
FORCEINLINE MSVCRT__locale_t __get_MSVCRT_locale()
Definition: locale.h:79
struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
void free_mbcinfo(MSVCRT_pthreadmbcinfo)
Definition: locale.c:685
struct MSVCRT_threadmbcinfostruct * MSVCRT_pthreadmbcinfo
Definition: locale.h:43
struct MSVCRT_localeinfo_struct * MSVCRT__locale_t
struct MSVCRT_threadlocaleinfostruct * MSVCRT_pthreadlocinfo
Definition: locale.h:42
void free_locinfo(MSVCRT_pthreadlocinfo)
Definition: locale.c:641
void __init_global_locale()
Definition: locale.c:1496
int _setmbcp_l(int, LCID, MSVCRT_pthreadmbcinfo) DECLSPEC_HIDDEN
Definition: _setmbcp.c:52
long LONG
Definition: pedump.c:60
DWORD LCID
Definition: nls.h:13
MSVCRT_pthreadmbcinfo mbcinfo
Definition: msvcrt.h:153
MSVCRT_pthreadlocinfo locinfo
Definition: msvcrt.h:152
struct lconv * lconv
Definition: locale.h:21
const unsigned short * pctype
Definition: locale.h:24
MSVCRT_LC_ID lc_id[6]
Definition: msvcrt.h:116
unsigned int lc_codepage
Definition: msvcrt.h:113
struct MSVCRT_threadlocaleinfostruct::@1656 lc_category[6]
unsigned char * pclmap
Definition: msvcrt.h:132
struct __lc_time_data * lc_time_curr
Definition: locale.h:27
unsigned int lc_collate_cp
Definition: msvcrt.h:114
unsigned char * pcumap
Definition: msvcrt.h:133
unsigned short * ctype1
Definition: msvcrt.h:130
MSVCRT_ulong lc_handle[6]
Definition: msvcrt.h:115
unsigned char mbcasemap[256]
Definition: msvcrt.h:144
unsigned short mbulinfo[6]
Definition: msvcrt.h:142
unsigned char mbctype[257]
Definition: msvcrt.h:143
char * am
Definition: locale.h:59
char * mon[12]
Definition: locale.h:58
int unk[2]
Definition: locale.h:67
char * time
Definition: locale.h:63
char * date
Definition: locale.h:62
char * wday[7]
Definition: locale.h:56
struct __lc_time_data::@4090::@4091 names
char * short_date
Definition: locale.h:61
char * pm
Definition: locale.h:60
char * str[43]
Definition: locale.h:53
char * short_mon[12]
Definition: locale.h:57
LCID lcid
Definition: locale.h:66
char * short_wday[7]
Definition: locale.h:55
wchar_t * wstr[43]
Definition: locale.h:68
Definition: locale.h:29
#define FORCEINLINE
Definition: wdftypes.h:67