Lines Matching defs:utf16
1199 * If utf16 is null terminated, utf16len can be set to -1, otherwise it must
1202 int uv__convert_utf16_to_utf8(const WCHAR* utf16, int utf16len, char** utf8) {
1205 if (utf16 == NULL)
1211 utf16,
1232 utf16,
1257 int uv__convert_utf8_to_utf16(const char* utf8, int utf8len, WCHAR** utf16) {
1272 *utf16 = uv__malloc(sizeof(WCHAR) * (bufsize + 1));
1274 if (*utf16 == NULL)
1278 bufsize = MultiByteToWideChar(CP_UTF8, 0, utf8, utf8len, *utf16, bufsize);
1281 uv__free(*utf16);
1282 *utf16 = NULL;
1286 (*utf16)[bufsize] = L'\0';