Searched refs:pwBuf (Results 1 - 1 of 1) sorted by relevance
| /ide/tools/previewer/util/windows/ |
| H A D | StringHelper.cpp | 29 wchar_t* pwBuf = new(std::nothrow) wchar_t[nwLen + 1]; in StringToUtf8() local 30 if (!pwBuf) { in StringToUtf8() 31 ELOG("Memory allocation failed : pwBuf."); in StringToUtf8() 34 ZeroMemory(pwBuf, (nwLen + 1) * doubles); in StringToUtf8() 35 ::MultiByteToWideChar(CP_ACP, 0, str.c_str(), str.length(), pwBuf, nwLen); in StringToUtf8() 36 int nLen = ::WideCharToMultiByte(CP_UTF8, 0, pwBuf, -1, NULL, NULL, NULL, NULL); in StringToUtf8() 38 delete[] pwBuf; in StringToUtf8() 48 ::WideCharToMultiByte(CP_UTF8, 0, pwBuf, nwLen, pBuf, nLen, NULL, NULL); in StringToUtf8() 50 delete[] pwBuf; in StringToUtf8() 52 pwBuf in StringToUtf8() 65 wchar_t* pwBuf = new(std::nothrow) wchar_t[wLenAdd]; Utf8ToString() local [all...] |
Completed in 1 milliseconds