#include <corecrt_internal.h>
#include <ctype.h>
#include <locale.h>
Go to the source code of this file.
◆ _isctype()
Definition at line 108 of file isctype.cpp.
109{
110 if (__acrt_locale_changed())
111 {
113 }
114
116}
__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)
int __cdecl _isctype_l(int const c, int const mask, _locale_t const locale)
unsigned short const * _locale_pctype
__crt_locale_data_public _public
◆ _isctype_l()
Definition at line 62 of file isctype.cpp.
63{
64 _LocaleUpdate locale_update(
locale);
65
66 if (
c >= -1 &&
c <= 255)
67 {
68
69 return locale_update.GetLocaleT()->locinfo->_public._locale_pctype[
c] &
mask;
70 }
71
73
74 int buffer_length;
77 {
79 buffer[1] =
static_cast<char>(
c);
81 buffer_length = 2;
82 }
83 else
84 {
85 buffer[0] =
static_cast<char>(
c);
87 buffer_length = 1;
88 }
89
90
93 locale_update.GetLocaleT(),
96 buffer_length,
98 locale_update.GetLocaleT()->locinfo->_public._locale_lc_codepage,
100 ) == 0)
101 {
102 return 0;
103 }
104
106}
BOOL __cdecl __acrt_GetStringTypeA(_locale_t const locale, DWORD const info_type, LPCSTR const string, int const string_size_in_bytes, unsigned short *const char_type, int const code_page, BOOL const error)
_Check_return_ __forceinline unsigned short __cdecl _isleadbyte_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
size_t const buffer_count
Referenced by _isctype().