ReactOS 0.4.16-dev-1025-gd3456f5
locale_update.cpp File Reference
#include <corecrt_internal.h>
Include dependency graph for locale_update.cpp:

Go to the source code of this file.

Functions

void __acrt_update_locale_info (__acrt_ptd *const ptd, __crt_locale_data **const locale_info)
 
void __acrt_update_multibyte_info (__acrt_ptd *const ptd, __crt_multibyte_data **const multibyte_info)
 
void __acrt_update_locale_info_explicit (__acrt_ptd *const ptd, __crt_locale_data **const locale_info, size_t const current_global_state_index)
 
void __acrt_update_multibyte_info_explicit (__acrt_ptd *const ptd, __crt_multibyte_data **const multibyte_info, size_t const current_global_state_index)
 

Function Documentation

◆ __acrt_update_locale_info()

void __acrt_update_locale_info ( __acrt_ptd *const  ptd,
__crt_locale_data **const  locale_info 
)

Definition at line 11 of file locale_update.cpp.

15{
16 if (*locale_info != __acrt_current_locale_data.value() && __acrt_should_sync_with_global_locale(ptd))
17 {
18 *locale_info = __acrt_update_thread_locale_data();
19 }
20}
__crt_locale_data *__cdecl __acrt_update_thread_locale_data(void)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
Definition: cvt.cpp:355
__crt_state_management::dual_state_global< __crt_locale_data * > __acrt_current_locale_data
Definition: nlsdata.cpp:132

Referenced by ___lc_codepage_func(), ___lc_collate_cp_func(), ___lc_locale_name_func(), ___mb_cur_max_func(), __p___mb_cur_max(), __pctype_func(), fast_check_current_locale(), and localeconv().

◆ __acrt_update_locale_info_explicit()

void __acrt_update_locale_info_explicit ( __acrt_ptd *const  ptd,
__crt_locale_data **const  locale_info,
size_t const  current_global_state_index 
)

Definition at line 33 of file locale_update.cpp.

38{
39 if (*locale_info != __acrt_current_locale_data.value_explicit(current_global_state_index) && __acrt_should_sync_with_global_locale(ptd))
40 {
41 *locale_info = __acrt_update_thread_locale_data();
42 }
43}

◆ __acrt_update_multibyte_info()

void __acrt_update_multibyte_info ( __acrt_ptd *const  ptd,
__crt_multibyte_data **const  multibyte_info 
)

Definition at line 22 of file locale_update.cpp.

26{
27 if (*multibyte_info != __acrt_current_multibyte_data.value() && __acrt_should_sync_with_global_locale(ptd))
28 {
29 *multibyte_info = __acrt_update_thread_multibyte_data();
30 }
31}
__crt_multibyte_data *__cdecl __acrt_update_thread_multibyte_data(void)
Definition: mbctype.cpp:361
__crt_state_management::dual_state_global< __crt_multibyte_data * > __acrt_current_multibyte_data
Definition: mbctype.cpp:131

◆ __acrt_update_multibyte_info_explicit()

void __acrt_update_multibyte_info_explicit ( __acrt_ptd *const  ptd,
__crt_multibyte_data **const  multibyte_info,
size_t const  current_global_state_index 
)

Definition at line 45 of file locale_update.cpp.

50{
51 if (*multibyte_info != __acrt_current_multibyte_data.value_explicit(current_global_state_index) && __acrt_should_sync_with_global_locale(ptd))
52 {
53 *multibyte_info = __acrt_update_thread_multibyte_data();
54 }
55}