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

Method _WC

UTCP/src/UT_StrOp.cpp:388–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386// Use WC() macro defined in ut_strop.h
387#if defined _UNICODE
388LPTSTR CUT_Str::_WC(LPTSTR dest, LPCSTR str) {
389 // the WC macro should have checked str is non-null.
390 // the WC macro will have allocated strlen(str)+1 wchars for dest
391 dest[0] = _T('\0');
392 size_t len = strlen(str)+1;
393 /*size_t res =*/ CUT_Str::mbstowcs(dest, len, str, len);
394 //int size = MultiByteToWideChar(CP_ACP,MB_PRECOMPOSED,source,strlen(source),dest,strlen(source));
395 return dest;
396}
397// return ascii char version of wchar string
398// Use AC() macro defined in ut_strop.h
399LPSTR CUT_Str::_AC(LPSTR dest, LPCTSTR wstr) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected