Lines Matching refs:wstr
75 WCHAR* wstr;
84 wstr = (WCHAR*)malloc(wlen * sizeof(WCHAR));
85 if (wstr == NULL) {
89 if (MultiByteToWideChar(codePage, 0, str, len, wstr, wlen) == 0) {
93 return wstr;
104 WCHAR* wstr;
118 wstr = getWideString(CP_UTF8, (char*)utf8, len, &wlen);
119 if ( wstr == NULL ) {
124 plen = WideCharToMultiByte(ui->platformCodePage, 0, wstr, wlen,
126 free(wstr);
143 WCHAR* wstr;
157 wstr = getWideString(ui->platformCodePage, str, len, &wlen);
158 if ( wstr == NULL ) {
163 plen = WideCharToMultiByte(CP_UTF8, 0, wstr, wlen,
165 free(wstr);