Searched refs:utf16_src (Results 1 – 1 of 1) sorted by relevance
/third_party/libpsl/src/ |
D | psl.c | 691 UChar *utf16_src = utf16_src_buf; in psl_idna_toASCII() local 695 u_strFromUTF8(utf16_src, countof(utf16_src_buf), &utf16_src_length, utf8, -1, &status); in psl_idna_toASCII() 699 utf16_src = malloc((utf16_src_length + 1) * sizeof(UChar)); in psl_idna_toASCII() 700 if (!utf16_src) goto cleanup; in psl_idna_toASCII() 702 u_strFromUTF8(utf16_src, utf16_src_length, NULL, utf8, -1, &status); in psl_idna_toASCII() 705 utf16_src[utf16_src_length] = 0; /* u_strFromUTF8() doesn't 0-terminate if dest is filled up */ in psl_idna_toASCII() 708 …utf16_dst_length = uidna_nameToASCII((UIDNA *)idna, utf16_src, utf16_src_length, utf16_dst, counto… in psl_idna_toASCII() 737 if (utf16_src != utf16_src_buf) in psl_idna_toASCII() 738 free(utf16_src); in psl_idna_toASCII()
|