17 if (narrow_locale ==
nullptr)
23 __crt_unique_heap_ptr<wchar_t> wide_locale(_calloc_crt_t(
wchar_t,
size));
24 if (wide_locale.get() ==
nullptr)
42 if (outwlocale ==
nullptr)
64 long*
const refcount =
static_cast<long*
>(
_malloc_crt(
size +
sizeof(
long)));
65 if (refcount ==
nullptr)
70 char* outlocale =
reinterpret_cast<char*
>(&refcount[1]);
91 if (__acrt_should_sync_with_global_locale(
ptd))
__acrt_ptd *__cdecl __acrt_getptd(void)
void __cdecl __acrt_eagerly_load_locale_apis(void)
#define _ERRCHECK_EINVAL_ERANGE(e)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
_ACRTIMP errno_t __cdecl mbstowcs_s(size_t *, wchar_t *, size_t, const char *, size_t)
_ACRTIMP wchar_t *__cdecl _wsetlocale(int, const wchar_t *)
long __cdecl _InterlockedDecrement(_Interlocked_operand_ long volatile *_Addend)
static wchar_t *__cdecl call_wsetlocale(int const category, char const *const narrow_locale)
__crt_locale_refcount lc_category[6]