ReactOS 0.4.16-dev-2332-g4cba65d
locale.h File Reference
#include <crtdefs.h>
Include dependency graph for locale.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MSVCRT_threadlocaleinfostruct
 
struct  MSVCRT_threadmbcinfostruct
 
struct  MSVCRT_localeinfo_struct
 
struct  __lc_time_data
 

Macros

#define MSVCRT_lconv   lconv
 
#define MSVCRT_locale   __get_MSVCRT_locale()
 

Typedefs

typedef struct MSVCRT_threadlocaleinfostruct MSVCRT_threadlocinfo
 
typedef struct MSVCRT_threadmbcinfostruct MSVCRT_threadmbcinfo
 
typedef struct MSVCRT_threadlocaleinfostructMSVCRT_pthreadlocinfo
 
typedef struct MSVCRT_threadmbcinfostructMSVCRT_pthreadmbcinfo
 
typedef struct MSVCRT_localeinfo_struct MSVCRT__locale_tstruct
 
typedef struct MSVCRT_localeinfo_structMSVCRT__locale_t
 
typedef struct __lc_time_data MSVCRT___lc_time_data
 

Functions

int _setmbcp_l (int, LCID, MSVCRT_pthreadmbcinfo) DECLSPEC_HIDDEN
 
MSVCRT_pthreadmbcinfo get_mbcinfo (void) DECLSPEC_HIDDEN
 
LCID MSVCRT_locale_to_LCID (const char *, unsigned short *) DECLSPEC_HIDDEN
 
void __init_global_locale ()
 
FORCEINLINE MSVCRT__locale_t __get_MSVCRT_locale ()
 
MSVCRT_pthreadlocinfo get_locinfo (void)
 
void __cdecl MSVCRT__free_locale (MSVCRT__locale_t)
 
void free_locinfo (MSVCRT_pthreadlocinfo)
 
void free_mbcinfo (MSVCRT_pthreadmbcinfo)
 

Variables

MSVCRT__locale_t global_locale
 

Macro Definition Documentation

◆ MSVCRT_lconv

Definition at line 42 of file locale.h.

◆ MSVCRT_locale

MSVCRT__locale_t MSVCRT_locale   __get_MSVCRT_locale()

Definition at line 80 of file locale.h.

Referenced by _setmbcp(), DllMain(), and msvcrt_get_thread_data().

Typedef Documentation

◆ MSVCRT___lc_time_data

◆ MSVCRT__locale_t

◆ MSVCRT__locale_tstruct

◆ MSVCRT_pthreadlocinfo

◆ MSVCRT_pthreadmbcinfo

Definition at line 45 of file locale.h.

◆ MSVCRT_threadlocinfo

◆ MSVCRT_threadmbcinfo

Function Documentation

◆ __get_MSVCRT_locale()

FORCEINLINE MSVCRT__locale_t __get_MSVCRT_locale ( )

Definition at line 81 of file locale.h.

82{
83 if(!global_locale)
85 return global_locale;
86}
MSVCRT__locale_t global_locale
void __init_global_locale()

◆ __init_global_locale()

void __init_global_locale ( )

Referenced by __get_MSVCRT_locale().

◆ _setmbcp_l()

int _setmbcp_l ( int  ,
LCID  ,
MSVCRT_pthreadmbcinfo   
)

◆ free_locinfo()

void free_locinfo ( MSVCRT_pthreadlocinfo  )

◆ free_mbcinfo()

void free_mbcinfo ( MSVCRT_pthreadmbcinfo  )

◆ get_locinfo()

MSVCRT_pthreadlocinfo get_locinfo ( void  )

Definition at line 635 of file locale.c.

635 {
638 return data->locinfo;
639}
static void update_thread_locale(thread_data_t *data)
Definition: locale.c:609
thread_data_t *CDECL msvcrt_get_thread_data(void)
Definition: ucrt_tls_sup.c:59
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950

Referenced by ___lc_codepage_func(), ___lc_collate_cp_func(), ___lc_handle_func(), _Getdays(), _Getmonths(), _Gettnames(), localeconv(), and setlocale().

◆ get_mbcinfo()

◆ MSVCRT__free_locale()

void __cdecl MSVCRT__free_locale ( MSVCRT__locale_t  )

◆ MSVCRT_locale_to_LCID()

LCID MSVCRT_locale_to_LCID ( const char ,
unsigned short  
)

Variable Documentation

◆ global_locale

MSVCRT__locale_t global_locale
extern

Referenced by __get_MSVCRT_locale().