| 386 | // Use WC() macro defined in ut_strop.h |
| 387 | #if defined _UNICODE |
| 388 | LPTSTR 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 |
| 399 | LPSTR CUT_Str::_AC(LPSTR dest, LPCTSTR wstr) { |
nothing calls this directly
no outgoing calls
no test coverage detected