ReactOS 0.4.16-dev-258-g81860b4
locale.h File Reference
#include <corecrt.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  lconv
 

Macros

#define LC_ALL   0
 
#define LC_COLLATE   1
 
#define LC_CTYPE   2
 
#define LC_MONETARY   3
 
#define LC_NUMERIC   4
 
#define LC_TIME   5
 
#define LC_MIN   LC_ALL
 
#define LC_MAX   LC_TIME
 
#define _LCONV_DEFINED
 
#define _CONFIG_LOCALE_SWT
 
#define _ENABLE_PER_THREAD_LOCALE   0x1
 
#define _DISABLE_PER_THREAD_LOCALE   0x2
 
#define _ENABLE_PER_THREAD_LOCALE_GLOBAL   0x10
 
#define _DISABLE_PER_THREAD_LOCALE_GLOBAL   0x20
 
#define _ENABLE_PER_THREAD_LOCALE_NEW   0x100
 
#define _DISABLE_PER_THREAD_LOCALE_NEW   0x200
 
#define _WLOCALE_DEFINED
 

Functions

_Check_return_opt_ int __cdecl _configthreadlocale (_In_ int _Flag)
 
_Check_return_opt_ char *__cdecl setlocale (_In_ int _Category, _In_opt_z_ const char *_Locale)
 
_Check_return_opt_ _CRTIMP struct lconv *__cdecl localeconv (void)
 
_Check_return_opt_ _locale_t __cdecl _get_current_locale (void)
 
_Check_return_opt_ _locale_t __cdecl _create_locale (_In_ int _Category, _In_z_ const char *_Locale)
 
void __cdecl _free_locale (_In_opt_ _locale_t _Locale)
 
_Check_return_ _locale_t __cdecl __get_current_locale (void)
 
_Check_return_ _locale_t __cdecl __create_locale (_In_ int _Category, _In_z_ const char *_Locale)
 
void __cdecl __free_locale (_In_opt_ _locale_t _Locale)
 
_CRTIMP unsigned int __cdecl ___lc_collate_cp_func (void)
 
_CRTIMP unsigned int __cdecl ___lc_codepage_func (void)
 
_Check_return_opt_ _CRTIMP wchar_t *__cdecl _wsetlocale (_In_ int _Category, _In_opt_z_ const wchar_t *_Locale)
 

Macro Definition Documentation

◆ _CONFIG_LOCALE_SWT

#define _CONFIG_LOCALE_SWT

Definition at line 52 of file locale.h.

◆ _DISABLE_PER_THREAD_LOCALE

#define _DISABLE_PER_THREAD_LOCALE   0x2

Definition at line 55 of file locale.h.

◆ _DISABLE_PER_THREAD_LOCALE_GLOBAL

#define _DISABLE_PER_THREAD_LOCALE_GLOBAL   0x20

Definition at line 57 of file locale.h.

◆ _DISABLE_PER_THREAD_LOCALE_NEW

#define _DISABLE_PER_THREAD_LOCALE_NEW   0x200

Definition at line 59 of file locale.h.

◆ _ENABLE_PER_THREAD_LOCALE

#define _ENABLE_PER_THREAD_LOCALE   0x1

Definition at line 54 of file locale.h.

◆ _ENABLE_PER_THREAD_LOCALE_GLOBAL

#define _ENABLE_PER_THREAD_LOCALE_GLOBAL   0x10

Definition at line 56 of file locale.h.

◆ _ENABLE_PER_THREAD_LOCALE_NEW

#define _ENABLE_PER_THREAD_LOCALE_NEW   0x100

Definition at line 58 of file locale.h.

◆ _LCONV_DEFINED

#define _LCONV_DEFINED

Definition at line 28 of file locale.h.

◆ _WLOCALE_DEFINED

#define _WLOCALE_DEFINED

Definition at line 127 of file locale.h.

◆ LC_ALL

#define LC_ALL   0

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 17 of file locale.h.

◆ LC_COLLATE

#define LC_COLLATE   1

Definition at line 18 of file locale.h.

◆ LC_CTYPE

#define LC_CTYPE   2

Definition at line 19 of file locale.h.

◆ LC_MAX

#define LC_MAX   LC_TIME

Definition at line 25 of file locale.h.

◆ LC_MIN

#define LC_MIN   LC_ALL

Definition at line 24 of file locale.h.

◆ LC_MONETARY

#define LC_MONETARY   3

Definition at line 20 of file locale.h.

◆ LC_NUMERIC

#define LC_NUMERIC   4

Definition at line 21 of file locale.h.

◆ LC_TIME

#define LC_TIME   5

Definition at line 22 of file locale.h.

Function Documentation

◆ ___lc_codepage_func()

_CRTIMP unsigned int __cdecl ___lc_codepage_func ( void  )

Definition at line 629 of file locale.c.

630{
631 return __lc_codepage;
632}
unsigned int __lc_codepage
Definition: locale.c:36

Referenced by mbrtowc(), START_TEST(), and Test___lc_codepage().

◆ ___lc_collate_cp_func()

_CRTIMP unsigned int __cdecl ___lc_collate_cp_func ( void  )

Definition at line 637 of file locale.c.

638{
639 return get_locinfo()->lc_collate_cp;
640}
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:356
unsigned int lc_collate_cp
Definition: msvcrt.h:114

Referenced by Test___lc_collate_cp().

◆ __create_locale()

_Check_return_ _locale_t __cdecl __create_locale ( _In_ int  _Category,
_In_z_ const char _Locale 
)

◆ __free_locale()

void __cdecl __free_locale ( _In_opt_ _locale_t  _Locale)

◆ __get_current_locale()

_Check_return_ _locale_t __cdecl __get_current_locale ( void  )

◆ _configthreadlocale()

_Check_return_opt_ int __cdecl _configthreadlocale ( _In_ int  _Flag)

◆ _create_locale()

_Check_return_opt_ _locale_t __cdecl _create_locale ( _In_ int  _Category,
_In_z_ const char _Locale 
)

◆ _free_locale()

void __cdecl _free_locale ( _In_opt_ _locale_t  _Locale)

◆ _get_current_locale()

_Check_return_opt_ _locale_t __cdecl _get_current_locale ( void  )

◆ _wsetlocale()

_Check_return_opt_ _CRTIMP wchar_t *__cdecl _wsetlocale ( _In_ int  _Category,
_In_opt_z_ const wchar_t _Locale 
)

◆ localeconv()

Definition at line 603 of file locale.c.

604{
605 return (struct lconv*)get_locinfo()->lconv;
606}
struct MSVCRT_lconv * lconv
Definition: msvcrt.h:128
Definition: locale.h:29

Referenced by ftoes(), and ftofs().

◆ setlocale()

_Check_return_opt_ char *__cdecl setlocale ( _In_ int  _Category,
_In_opt_z_ const char _Locale 
)