Home
last modified time | relevance | path

Searched refs:wstr (Results 1 – 4 of 4) sorted by relevance

/developtools/smartperf_host/trace_streamer/src/base/
Dcodec_cov.cpp111 std::unique_ptr<wchar_t[]> wstr = std::make_unique<wchar_t[]>(len + 1); in GbkToUtf8() local
112 MultiByteToWideChar(CP_ACP, 0, srcStr, -1, wstr.get(), len); in GbkToUtf8()
113 len = WideCharToMultiByte(CP_UTF8, 0, wstr.get(), -1, NULL, 0, NULL, NULL); in GbkToUtf8()
115 WideCharToMultiByte(CP_UTF8, 0, wstr.get(), -1, str.get(), len, NULL, NULL); in GbkToUtf8()
/developtools/profiler/host/smartperf/trace_streamer/src/base/
Dcodec_cov.cpp111 std::unique_ptr<wchar_t[]> wstr = std::make_unique<wchar_t[]>(len + 1); in GbkToUtf8() local
112 MultiByteToWideChar(CP_ACP, 0, srcStr, -1, wstr.get(), len); in GbkToUtf8()
113 len = WideCharToMultiByte(CP_UTF8, 0, wstr.get(), -1, NULL, 0, NULL, NULL); in GbkToUtf8()
115 WideCharToMultiByte(CP_UTF8, 0, wstr.get(), -1, str.get(), len, NULL, NULL); in GbkToUtf8()
/developtools/hdc/src/common/
Dbase.cpp1434 wchar_t *wstr = new(std::nothrow) wchar_t[count + 1](); in UnicodeToUtf8() local
1435 if (wstr == nullptr) { in UnicodeToUtf8()
1439 count = MultiByteToWideChar(from, 0, src, -1, wstr, count); in UnicodeToUtf8()
1443 delete[] wstr; in UnicodeToUtf8()
1446 count = WideCharToMultiByte(to, 0, wstr, -1, nullptr, 0, nullptr, nullptr); in UnicodeToUtf8()
1449 WRITE_LOG(LOG_FATAL, "WideCharToMultiByte failed %s error:%lu", wstr, err); in UnicodeToUtf8()
1450 delete[] wstr; in UnicodeToUtf8()
1456 delete[] wstr; in UnicodeToUtf8()
1459 count = WideCharToMultiByte(to, 0, wstr, -1, ustr, count, nullptr, nullptr); in UnicodeToUtf8()
1462 WRITE_LOG(LOG_FATAL, "WideCharToMultiByte failed to ustr %s error:%lu", wstr, err); in UnicodeToUtf8()
[all …]
/developtools/hdc/src/host/
Dhost_uart.cpp232 std::string WstringToString(const std::wstring &wstr) in EnumSerialPort() argument
234 if (wstr.empty()) { in EnumSerialPort()
237 int size = WideCharToMultiByte(CP_ACP, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL); in EnumSerialPort()
239 WideCharToMultiByte(CP_ACP, 0, &wstr[0], (int)wstr.size(), &ret[0], size, NULL, in EnumSerialPort()