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
_Check_return_opt_ _CRTIMP wchar_t *__cdecl _wsetlocale(_In_ int _Category, _In_opt_z_ const wchar_t *_Locale)
long __cdecl _InterlockedDecrement(_Interlocked_operand_ long volatile *_Addend)
errno_t mbstowcs_s(size_t *cchConverted, wchar_t *widechar, size_t charoutct, const char *multibyte, size_t count)
static wchar_t *__cdecl call_wsetlocale(int const category, char const *const narrow_locale)
__crt_locale_refcount lc_category[6]