Home
last modified time | relevance | path

Searched refs:wstr (Results 1 - 3 of 3) sorted by relevance

/developtools/smartperf_host/trace_streamer/src/base/
H A 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/host/
H A Dhost_uart.cpp233 std::string WstringToString(const std::wstring &wstr) in EnumSerialPort() argument
235 if (wstr.empty()) { in EnumSerialPort()
238 int size = WideCharToMultiByte(CP_ACP, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL); in EnumSerialPort()
240 WideCharToMultiByte(CP_ACP, 0, &wstr[0], (int)wstr.size(), &ret[0], size, NULL, in EnumSerialPort()
/developtools/hdc/src/common/
H A Dbase.cpp1992 wchar_t *wstr = new(std::nothrow) wchar_t[count + 1](); in UnicodeToUtf8() local
1993 if (wstr == nullptr) { in UnicodeToUtf8()
1994 WRITE_LOG(LOG_FATAL, "new wstr failed count:%d", count); in UnicodeToUtf8()
1997 count = MultiByteToWideChar(from, 0, src, -1, wstr, count); in UnicodeToUtf8()
2000 WRITE_LOG(LOG_FATAL, "MultiByteToWideChar failed to wstr %s error:%lu", src, err); in UnicodeToUtf8()
2001 delete[] wstr; in UnicodeToUtf8()
2004 count = WideCharToMultiByte(to, 0, wstr, -1, nullptr, 0, nullptr, nullptr); in UnicodeToUtf8()
2007 WRITE_LOG(LOG_FATAL, "WideCharToMultiByte failed %s error:%lu", wstr, err); in UnicodeToUtf8()
2008 delete[] wstr; in UnicodeToUtf8()
2014 delete[] wstr; in UnicodeToUtf8()
[all...]

Completed in 5 milliseconds