ReactOS 0.4.16-dev-311-g9382aa2
locale.h
Go to the documentation of this file.
1#ifndef __CRT_INTERNAL_LOCALE_H
2#define __CRT_INTERNAL_LOCALE_H
3
4#include <crtdefs.h> // for LC_ID
5
8 unsigned int lc_codepage;
9 unsigned int lc_collate_cp;
10 unsigned long lc_handle[6];
12 struct {
13 char *locale;
14 wchar_t *wlocale;
15 int *refcount;
16 int *wrefcount;
18 int lc_clike;
19 int mb_cur_max;
23 struct lconv *lconv;
24 int *ctype1_refcount;
25 unsigned short *ctype1;
26 const unsigned short *pctype;
27 unsigned char *pclmap;
28 unsigned char *pcumap;
31
32typedef struct MSVCRT_threadmbcinfostruct {
34 int mbcodepage;
35 int ismbcodepage;
36 int mblcid;
37 unsigned short mbulinfo[6];
38 unsigned char mbctype[257];
39 char mbcasemap[256];
41
42#define MSVCRT_lconv lconv
43
46
47typedef struct MSVCRT_localeinfo_struct
48{
52
53typedef struct __lc_time_data {
54 union {
55 char *str[43];
56 struct {
57 char *short_wday[7];
58 char *wday[7];
59 char *short_mon[12];
60 char *mon[12];
61 char *am;
62 char *pm;
64 char *date;
65 char *time;
67 } str;
69 int unk[2];
70 wchar_t *wstr[43];
71 char data[1];
73
76LCID MSVCRT_locale_to_LCID(const char*, unsigned short*) DECLSPEC_HIDDEN;
77
80#define MSVCRT_locale __get_MSVCRT_locale()
82{
83 if(!global_locale)
85 return global_locale;
86}
87
92
93#endif //__CRT_INTERNAL_LOCALE_H
94
#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:210
MSVCRT_pthreadmbcinfo get_mbcinfo(void) DECLSPEC_HIDDEN
Definition: locale.c:366
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:356
MSVCRT__locale_t global_locale
Definition: locale.c:1497
void __cdecl MSVCRT__free_locale(MSVCRT__locale_t)
Definition: locale.c:713
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:81
struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
void free_mbcinfo(MSVCRT_pthreadmbcinfo)
Definition: locale.c:687
struct MSVCRT_threadmbcinfostruct * MSVCRT_pthreadmbcinfo
Definition: locale.h:45
struct MSVCRT_localeinfo_struct * MSVCRT__locale_t
struct MSVCRT_threadlocaleinfostruct * MSVCRT_pthreadlocinfo
Definition: locale.h:44
void free_locinfo(MSVCRT_pthreadlocinfo)
Definition: locale.c:643
void __init_global_locale()
Definition: locale.c:1498
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:23
const unsigned short * pctype
Definition: locale.h:26
unsigned int lc_codepage
Definition: msvcrt.h:113
struct MSVCRT_threadlocaleinfostruct::@1688 lc_category[6]
unsigned char * pclmap
Definition: msvcrt.h:132
struct __lc_time_data * lc_time_curr
Definition: locale.h:29
unsigned int lc_collate_cp
Definition: msvcrt.h:114
unsigned char * pcumap
Definition: msvcrt.h:133
unsigned short * ctype1
Definition: msvcrt.h:130
MSVCRT_LC_ID lc_id[6]
Definition: msvcrt.h:116
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:61
char * mon[12]
Definition: locale.h:60
char * time
Definition: locale.h:65
char * date
Definition: locale.h:64
char * wday[7]
Definition: locale.h:58
char * short_date
Definition: locale.h:63
struct __lc_time_data::@4308::@4309 names
char * pm
Definition: locale.h:62
char * str[43]
Definition: locale.h:55
int unk[2]
Definition: locale.h:69
char * short_mon[12]
Definition: locale.h:59
LCID lcid
Definition: locale.h:68
char * short_wday[7]
Definition: locale.h:57
wchar_t * wstr[43]
Definition: locale.h:70
Definition: locale.h:29
#define FORCEINLINE
Definition: wdftypes.h:67