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.
| 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. |
| 357 | size_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 | |
| 372 | void CUT_Str::wcstombs(size_t *pConvertedChars, char *mbstr, size_t sizeInBytes, const wchar_t *wcstr, size_t count) |
| 373 | { |
nothing calls this directly
no outgoing calls
no test coverage detected