Searched refs:wstr (Results 1 – 2 of 2) sorted by relevance
/qemu/hw/usb/ |
H A D | dev-mtp.c | 759 wchar_t *wstr = g_new(wchar_t, len); in usb_mtp_add_str() local 762 ret = mbstowcs(wstr, str, len); in usb_mtp_add_str() 766 usb_mtp_add_wstr(data, wstr); in usb_mtp_add_str() 769 g_free(wstr); in usb_mtp_add_str() 1554 wchar_t *wstr = g_new0(wchar_t, len + 1); in utf16_to_str() local 1560 wstr[count] = lduw_le_p(str16 + (count * 2)); in utf16_to_str() 1562 wstr[count] = 0; in utf16_to_str() 1564 dlen = wcstombs(NULL, wstr, 0) + 1; in utf16_to_str() 1566 wcstombs(dest, wstr, dlen); in utf16_to_str() 1567 g_free(wstr); in utf16_to_str()
|
/qemu/qga/ |
H A D | commands-win32.c | 1518 static char *guest_wctomb_dup(WCHAR *wstr) in guest_wctomb_dup() argument 1523 str_size = WideCharToMultiByte(CP_UTF8, 0, wstr, -1, NULL, 0, NULL, NULL); in guest_wctomb_dup() 1526 WideCharToMultiByte(CP_UTF8, 0, wstr, -1, str, str_size, NULL, NULL); in guest_wctomb_dup()
|