ReactOS  0.4.13-dev-39-g8b6696f
locale.h
Go to the documentation of this file.
1 #ifndef __CRT_INTERNAL_LOCALE_H
2 #define __CRT_INTERNAL_LOCALE_H
3 
4 typedef struct MSVCRT_threadlocaleinfostruct {
6  unsigned int lc_codepage;
7  unsigned int lc_collate_cp;
8  unsigned long lc_handle[6];
9  LC_ID lc_id[6];
10  struct {
11  char *locale;
12  wchar_t *wlocale;
13  int *refcount;
14  int *wrefcount;
15  } lc_category[6];
16  int lc_clike;
17  int mb_cur_max;
19  int *lconv_num_refcount;
20  int *lconv_mon_refcount;
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 
30 typedef 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 
45 typedef struct MSVCRT_localeinfo_struct
46 {
50 
51 typedef 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;
61  char *short_date;
62  char *date;
63  char *time;
64  } names;
65  } str;
67  int unk[2];
68  wchar_t *wstr[43];
69  char data[1];
71 
74 LCID 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 
char * date
Definition: locale.h:62
void __init_global_locale()
Definition: locale.c:1496
MSVCRT_LC_ID lc_id[6]
Definition: msvcrt.h:116
void free_locinfo(MSVCRT_pthreadlocinfo)
Definition: locale.c:641
#define __cdecl
Definition: accygwin.h:79
MSVCRT_pthreadmbcinfo get_mbcinfo(void) DECLSPEC_HIDDEN
Definition: locale.c:364
unsigned char mbctype[257]
Definition: msvcrt.h:143
wchar_t * wstr[43]
Definition: locale.h:68
char * str[43]
Definition: locale.h:53
DWORD LCID
Definition: nls.h:13
struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
Definition: locale.c:711
struct MSVCRT_threadmbcinfostruct MSVCRT_threadmbcinfo
unsigned char mbcasemap[256]
Definition: msvcrt.h:144
long LONG
Definition: pedump.c:60
struct __lc_time_data * lc_time_curr
Definition: locale.h:27
MSVCRT_pthreadmbcinfo mbcinfo
Definition: msvcrt.h:153
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:354
unsigned char * pcumap
Definition: msvcrt.h:133
char * short_wday[7]
Definition: locale.h:55
unsigned short * ctype1
Definition: msvcrt.h:130
#define FORCEINLINE
Definition: ntbasedef.h:221
Definition: locale.h:37
struct __lc_time_data::@3895::@3896 names
char * mon[12]
Definition: locale.h:58
struct MSVCRT_localeinfo_struct * MSVCRT__locale_t
struct MSVCRT_threadmbcinfostruct * MSVCRT_pthreadmbcinfo
Definition: locale.h:43
char * am
Definition: locale.h:59
char * time
Definition: locale.h:63
unsigned short mbulinfo[6]
Definition: msvcrt.h:142
LCID MSVCRT_locale_to_LCID(const char *, unsigned short *) DECLSPEC_HIDDEN
Definition: locale.c:208
int unk[2]
Definition: locale.h:67
struct MSVCRT_threadlocaleinfostruct::@1606 lc_category[6]
const unsigned short * pctype
Definition: locale.h:24
char * wday[7]
Definition: locale.h:56
unsigned char * pclmap
Definition: msvcrt.h:132
unsigned int lc_collate_cp
Definition: msvcrt.h:114
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
MSVCRT__locale_t global_locale
Definition: locale.c:1495
LCID lcid
Definition: locale.h:66
unsigned int lc_codepage
Definition: msvcrt.h:113
MSVCRT_pthreadlocinfo locinfo
Definition: msvcrt.h:152
struct MSVCRT_threadlocaleinfostruct * MSVCRT_pthreadlocinfo
Definition: locale.h:42
#define DECLSPEC_HIDDEN
Definition: precomp.h:8
char * pm
Definition: locale.h:60
char * short_date
Definition: locale.h:61
void free_mbcinfo(MSVCRT_pthreadmbcinfo)
Definition: locale.c:685
struct __lc_time_data MSVCRT___lc_time_data
struct MSVCRT_threadlocaleinfostruct MSVCRT_threadlocinfo
struct lconv * lconv
Definition: locale.h:21
char * short_mon[12]
Definition: locale.h:57
MSVCRT_ulong lc_handle[6]
Definition: msvcrt.h:115
FORCEINLINE MSVCRT__locale_t __get_MSVCRT_locale()
Definition: locale.h:79
int _setmbcp_l(int, LCID, MSVCRT_pthreadmbcinfo) DECLSPEC_HIDDEN
Definition: _setmbcp.c:52