20 char const*
const string,
22 __crt_cached_ptd_host&
ptd
26 if (!
string || *
string ==
'\0' ||
max_count == 0)
45 locale->locinfo->_public._locale_mb_cur_max == 1 ||
46 locale->locinfo->_public._locale_mb_cur_max == 2);
50 _ASSERTE(
locale->locinfo->_public._locale_lc_codepage !=
CP_UTF8 &&
L"UTF-8 isn't supported in this _mblen_l function yet!!!");
56 if (
locale->locinfo->_public._locale_mb_cur_max <= 1)
66 int const status = __acrt_MultiByteToWideChar(
67 locale->locinfo->_public._locale_lc_codepage,
70 locale->locinfo->_public._locale_mb_cur_max,
79 return locale->locinfo->_public._locale_mb_cur_max;
85 if (
locale->locinfo->_public._locale_lc_codepage !=
CP_ACP)
87 int const status = __acrt_MultiByteToWideChar(
88 locale->locinfo->_public._locale_lc_codepage,
106 char const*
const string,
118 char const*
const string,
122 __crt_cached_ptd_host
ptd;
_Check_return_ __forceinline unsigned short __cdecl _isleadbyte_fast_internal(_In_ unsigned char const c, _In_ _locale_t const locale)
_In_ size_t const _In_ int _In_ bool const _In_ unsigned const _In_ __acrt_rounding_mode const _Inout_ __crt_cached_ptd_host & ptd
Character const *const size_t const max_count
#define MB_ERR_INVALID_CHARS
int __cdecl _mblen_l(char const *const string, size_t const max_count, _locale_t const locale)
static int __cdecl _mblen_internal(char const *const string, size_t const max_count, __crt_cached_ptd_host &ptd)
int __cdecl mblen(char const *const string, size_t const max_count)
size_t __cdecl __mbrtowc_utf8(wchar_t *pwc, const char *s, size_t n, mbstate_t *ps, __crt_cached_ptd_host &ptd)