Lines Matching defs:wstr
330 WCHAR* wstr;
339 wstr = (WCHAR*)malloc(wlen * sizeof(WCHAR));
340 if (wstr == NULL) {
344 if (MultiByteToWideChar(codePage, 0, str, len, wstr, wlen) == 0) {
348 return wstr;
358 WCHAR* wstr;
375 wstr = getWideString(CP_UTF8, (char*)utf8, len, &wlen);
376 if ( wstr == NULL ) {
383 plen = WideCharToMultiByte(codepage, 0, wstr, wlen,
385 free(wstr);
406 WCHAR* wstr;
424 wstr = getWideString(codepage, str, len, &wlen);
425 if ( wstr == NULL ) {
430 plen = WideCharToMultiByte(CP_UTF8, 0, wstr, wlen,
432 free(wstr);