101 if ((
count = __acrt_MultiByteToWideChar(
locale->locinfo->_public._locale_lc_codepage,
123 for (
p = (
unsigned char *)
s; (charcnt-- && *
p);
p++)
144 bytecnt = ((
int) ((
char *)
p - (
char *)
s));
146 if ((
count = __acrt_MultiByteToWideChar(
locale->locinfo->_public._locale_lc_codepage,
167 else if ((
count = __acrt_MultiByteToWideChar(
locale->locinfo->_public._locale_lc_codepage,
203 __crt_cached_ptd_host
ptd;
233 size_t * pConvertedChars,
238 __crt_cached_ptd_host&
ptd
252 if (pConvertedChars !=
nullptr)
254 *pConvertedChars = 0;
265 if (retsize == (
size_t) - 1)
271 return ptd.get_errno().value_or(0);
280 if (retsize > sizeInWords)
287 retsize = sizeInWords;
292 pwcs[retsize - 1] =
'\0';
295 if (pConvertedChars !=
nullptr)
297 *pConvertedChars = retsize;
304 size_t * pConvertedChars,
317 size_t *pConvertedChars,
324 __crt_cached_ptd_host
ptd;
ACPI_SIZE strlen(const char *String)
_Check_return_ __forceinline unsigned short __cdecl _isleadbyte_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
#define _UCRT_VALIDATE_RETURN(ptd, expr, errorcode, retexpr)
#define _UCRT_VALIDATE_RETURN_ERRCODE(ptd, expr, errorcode)
#define _RESET_STRING(_String, _Size)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
#define ERROR_INSUFFICIENT_BUFFER
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLuint GLuint GLsizei count
#define MB_ERR_INVALID_CHARS
static errno_t __cdecl _mbstowcs_internal(size_t *pConvertedChars, wchar_t *pwcs, size_t sizeInWords, const char *s, size_t n, __crt_cached_ptd_host &ptd)
errno_t __cdecl mbstowcs_s(size_t *pConvertedChars, wchar_t *pwcs, size_t sizeInWords, const char *s, size_t n)
static size_t __cdecl _mbstowcs_l_helper(_Out_writes_opt_z_(n) wchar_t *pwcs, _In_reads_or_z_(n) _Pre_z_ const char *s, _In_ size_t n, _In_opt_ __crt_cached_ptd_host &ptd)
size_t __cdecl __mbsrtowcs_utf8(wchar_t *dst, const char **src, size_t len, mbstate_t *ps, __crt_cached_ptd_host &ptd)
#define _In_reads_or_z_(s)
#define _Out_writes_opt_z_(s)
_In_z_ const wchar_t * pwcs
DWORD WINAPI GetLastError(void)