#include <corecrt_internal.h>
#include <ctype.h>
#include <locale.h>
Go to the source code of this file.
◆ fast_check_current_locale()
Definition at line 28 of file _ctype.cpp.
29{
30
31 if (!__acrt_locale_changed())
32 {
34 }
35
36
37
38
39
40
44
45
46 if (
c >= -1 &&
c <= 255)
47 {
48 return locale_info->_public._locale_pctype[
c] &
mask;
49 }
50
51
52
53 if (locale_info->_public._locale_mb_cur_max > 1)
54 {
56 }
57
58 return 0;
59}
static __forceinline int fast_check_initial_locale(int const c, int const mask)
__acrt_ptd *__cdecl __acrt_getptd(void)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
_Check_return_ _CRTIMP int __cdecl _isctype_l(_In_ int _C, _In_ int _Type, _In_opt_ _locale_t _Locale)
void __acrt_update_locale_info(__acrt_ptd *const ptd, __crt_locale_data **const locale_info)
Referenced by fast_check_given_locale(), and int().
◆ fast_check_given_locale()
Definition at line 61 of file _ctype.cpp.
62{
63
66 }
67
68
69 if (
c >= -1 &&
c <= 255)
70 {
71 return locale->locinfo->_public._locale_pctype[
c] &
mask;
72 }
73
74
75
76 if (
locale->locinfo->_public._locale_mb_cur_max > 1)
77 {
79 }
80
81 return 0;
82}
static __forceinline int fast_check_current_locale(int const c, int const mask)
◆ fast_check_initial_locale()
Definition at line 19 of file _ctype.cpp.
20{
21 #ifdef _DEBUG
22 return _chvalidator(
c,
mask);
23 #else
25 #endif
26}
__crt_locale_data __acrt_initial_locale_data
static int __CRTDECL __acrt_locale_get_ctype_array_value(_In_reads_(_Char_value+1) unsigned short const *const locale_pctype_array, _In_range_(-1, 255) int const c, _In_ int const mask)
unsigned short const * _locale_pctype
__crt_locale_data_public _public
Referenced by fast_check_current_locale().
◆ int()
◆ locale
Initial value:{
static __forceinline int fast_check_given_locale(int const c, int const mask, _locale_t const locale)
Definition at line 85 of file _ctype.cpp.