Lines Matching defs:utf8
1202 int uv__convert_utf16_to_utf8(const WCHAR* utf16, int utf16len, char** utf8) {
1224 *utf8 = uv__malloc(bufsize + 1);
1226 if (*utf8 == NULL)
1234 *utf8,
1240 uv__free(*utf8);
1241 *utf8 = NULL;
1245 (*utf8)[bufsize] = '\0';
1254 * If utf8 is null terminated, utf8len can be set to -1, otherwise it must
1257 int uv__convert_utf8_to_utf16(const char* utf8, int utf8len, WCHAR** utf16) {
1260 if (utf8 == NULL)
1264 bufsize = MultiByteToWideChar(CP_UTF8, 0, utf8, utf8len, NULL, 0);
1278 bufsize = MultiByteToWideChar(CP_UTF8, 0, utf8, utf8len, *utf16, bufsize);