MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / mbstowcs

Method mbstowcs

UTCP/src/UT_StrOp.cpp:357–370  ·  view source on GitHub ↗

v4.2 these internal mbstowcs and wcstombs are called by the AC and WC macros below. For translation to wide char with code page selection (i.e CP_UTF8) see cvtcpy above.

Source from the content-addressed store, hash-verified

355// v4.2 these internal mbstowcs and wcstombs are called by the AC and WC macros below.
356// For translation to wide char with code page selection (i.e CP_UTF8) see cvtcpy above.
357size_t CUT_Str::mbstowcs(wchar_t *wcstr, size_t sizeInWords, const char *mbstr, size_t count )
358{
359#if _MSC_VER >= 1400
360 size_t retval;
361
362 if (!mbstowcs_s(&retval, wcstr, sizeInWords, mbstr, count))
363 return retval;
364
365 return 0;
366#else
367 UNREFERENCED_PARAMETER(sizeInWords);
368 return ::mbstowcs(wcstr, mbstr, count);
369#endif
370}
371
372void CUT_Str::wcstombs(size_t *pConvertedChars, char *mbstr, size_t sizeInBytes, const wchar_t *wcstr, size_t count)
373{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected