23#ifndef _UCRT_ENCLAVE_BUILD
56 unsigned short *newctype1 =
nullptr;
57 unsigned char *newclmap =
nullptr;
58 unsigned char *newcumap =
nullptr;
62 unsigned char *cbuffer =
nullptr;
78 long* refcount =
nullptr;
90 refcount = _calloc_crt_t(
long, 1).detach();
96 cbuffer = _calloc_crt_t(
unsigned char,
_CTABSIZE).detach();
98 if (!refcount || !newctype1 || !cbuffer || !newclmap || !newcumap)
103 *
cp++ = (
unsigned char)
i;
121 for (
i = 0x80;
i <= 0xff;
i++)
132 for (
i =
cp[0];
i <=
cp[1];
i++)
145 reinterpret_cast<char*
>(cbuffer + 1),
147 reinterpret_cast<char*
>(newclmap + 2 +
_COFFSET),
156 reinterpret_cast<char*
>(cbuffer + 1),
158 reinterpret_cast<char*
>(newcumap + 2 +
_COFFSET),
166 reinterpret_cast<char*
>(cbuffer),
191 for (
i = 0x80;
i <= 0xff;
i++)
194 newclmap[
_COFFSET +
i + 1] =
static_cast<unsigned char>(
i);
195 newcumap[
_COFFSET +
i + 1] =
static_cast<unsigned char>(
i);
202 for (
i =
cp[0];
i <=
cp[1];
i++)
205 newclmap[
_COFFSET +
i + 1] =
static_cast<unsigned char>(
i);
206 newcumap[
_COFFSET +
i + 1] =
static_cast<unsigned char>(
i);
235 ploci->
_public._locale_mb_cur_max = mb_cur_max;
261 ploci->
_public._locale_mb_cur_max = 1;
286 return ptloci->
_public._locale_mb_cur_max;
293 :
locale->locinfo->_public._locale_mb_cur_max;
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)
int __cdecl __acrt_LCMapStringA(_locale_t const plocinfo, PCWSTR const LocaleName, DWORD const dwMapFlags, PCCH const lpSrcStr, int const cchSrc, PCH const lpDestStr, int const cchDest, int const code_page, BOOL const bError)
#define InterlockedDecrement
__acrt_ptd *__cdecl __acrt_getptd(void)
int __cdecl __acrt_GetLocaleInfoA(_In_opt_ _locale_t _Locale, _In_ int _LCType, _In_ LPCWSTR _LocaleName, _In_ LCTYPE _FieldType, _Out_ void *_Address)
unsigned short const __newctype[]
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
BOOL WINAPI GetCPInfo(UINT codepage, LPCPINFO cpinfo)
unsigned short(__cdecl typeof(TIFFCurrentDirectory))(struct tiff *)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
const unsigned char __newcumap[]
const unsigned char __newclmap[]
int __cdecl __acrt_locale_initialize_ctype(__crt_locale_data *ploci)
unsigned int __cdecl ___lc_codepage_func()
int __cdecl ___mb_cur_max_l_func(_locale_t locale)
unsigned int __cdecl ___lc_collate_cp_func()
int __cdecl ___mb_cur_max_func()
wchar_t **__cdecl ___lc_locale_name_func()
void __acrt_update_locale_info(__acrt_ptd *const ptd, __crt_locale_data **const locale_info)
#define memcpy(s1, s2, n)
unsigned int _locale_lc_codepage
unsigned short const * _locale_pctype
unsigned char const * pcumap
__crt_locale_data_public _public
unsigned int lc_collate_cp
unsigned char const * pclmap
BYTE LeadByte[MAX_LEADBYTES]
#define LOCALE_IDEFAULTANSICODEPAGE