45 wchar_t *
cp = (
wchar_t *)
string;
51 return cp -
string + 1;
82_Success_(
return !=
static_cast<size_t>(-1))
83static
size_t __cdecl _wcstombs_l_helper(
133 if (*
pwcs++ ==
L'\0')
144 if (1 ==
locale->locinfo->_public._locale_mb_cur_max)
202 int mb_cur_max =
locale->locinfo->_public._locale_mb_cur_max;
248 for (
wchar_t *pw = (
wchar_t *)
pwcs; *pw != 0; pw++)
283 const wchar_t *
pwcs,
289 return _wcstombs_l_helper(
s,
pwcs,
n,
ptd);
294 const wchar_t *
pwcs,
298 __crt_cached_ptd_host
ptd;
299 return _wcstombs_l_helper(
s,
pwcs,
n,
ptd);
328 size_t * pConvertedChars,
333 __crt_cached_ptd_host&
ptd
346 if (pConvertedChars !=
nullptr)
348 *pConvertedChars = 0;
356 if (retsize == (
size_t)-1)
362 return ptd.get_errno().value_or(0);
383 dst[retsize - 1] =
'\0';
386 if (pConvertedChars !=
nullptr)
388 *pConvertedChars = retsize;
395 size_t *pConvertedChars,
408 size_t *pConvertedChars,
415 __crt_cached_ptd_host
ptd;
return __acrt_WideCharToMultiByte(code_page, 0, buffer.get(), -1, result_size !=0 ? result :nullptr, result_size, nullptr, nullptr)
unsigned short int uint16_t
#define _UCRT_VALIDATE_RETURN(ptd, expr, errorcode, retexpr)
#define _UCRT_VALIDATE_RETURN_ERRCODE(ptd, expr, errorcode)
#define _RESET_STRING(_String, _Size)
#define ERROR_INSUFFICIENT_BUFFER
GLuint GLuint GLsizei count
_Check_return_wat_ _CRTIMP errno_t __cdecl wcstombs_s(_Out_opt_ size_t *pcchConverted, _Out_writes_bytes_to_opt_(cjDstSize, *pcchConverted) char *pmbsDst, _In_ size_t cjDstSize, _In_z_ const wchar_t *pwszSrc, _In_ size_t cjMaxCount)
size_t __cdecl __wcsrtombs_utf8(char *dst, const wchar_t **src, size_t len, mbstate_t *ps, __crt_cached_ptd_host &ptd)
#define _In_reads_or_z_(s)
#define _Post_satisfies_(e)
_In_z_ const wchar_t _In_ size_t n
_In_z_ const wchar_t _In_ size_t _Inout_ __crt_cached_ptd_host & ptd
_In_z_ const wchar_t * pwcs
DWORD WINAPI GetLastError(void)