Home
last modified time | relevance | path

Searched refs:utf16 (Results 1 – 19 of 19) sorted by relevance

/src/crypto/krb5/src/util/support/
H A Dt_utf16.c48 const char *utf16; member
88 uint8_t *utf16; in main() local
94 ret = k5_utf8_to_utf16le(t->utf8, &utf16, &utf16len); in main()
95 if (t->utf16 == NULL) { in main()
100 assert(memcmp(t->utf16, utf16, utf16len) == 0); in main()
101 free(utf16); in main()
105 if (t->utf16 != NULL) { in main()
106 ret = k5_utf16le_to_utf8((uint8_t *)t->utf16, t->utf16len, &utf8); in main()
/src/share/i18n/esdb/UTF/
H A DMakefile7 UTF-16-var= utf16
9 UTF-16BE-var= utf16,big,force
11 UTF-16LE-var= utf16,little,force
13 UTF-16-INTERNAL-var= utf16,internal,force
15 UTF-16-SWAPPED-var= utf16,swapped,force
H A DUTF.alias10 16 utf16
/src/contrib/libfido2/openbsd-compat/
H A Dreadpassphrase_win32.c58 wchar_t* utf16 = NULL; in utf8_to_utf16() local
60 (utf16 = malloc(needed * sizeof(wchar_t))) == NULL || in utf8_to_utf16()
61 MultiByteToWideChar(CP_UTF8, 0, utf8, -1, utf16, needed) == 0) { in utf8_to_utf16()
67 return utf16; in utf8_to_utf16()
/src/crypto/openssl/crypto/pkcs12/
H A Dp12_utl.c150 static int bmp_to_utf8(char *str, const unsigned char *utf16, int len) in bmp_to_utf8() argument
161 utf32chr = (utf16[0] << 8) | utf16[1]; in bmp_to_utf8()
171 lo = (utf16[2] << 8) | utf16[3]; in bmp_to_utf8()
/src/contrib/llvm-project/llvm/include/llvm/Support/
H A DConvertUTF.h334 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16);
336 std::error_code CurCPToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16);
337 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
340 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
/src/crypto/krb5/src/kdc/
H A Dndr.c97 uint8_t *utf16; in enc_wchar_pointer() local
99 ret = k5_utf8_to_utf16le(utf8, &utf16, &utf16len); in enc_wchar_pointer()
109 k5_buf_add_len(&b, utf16, utf16len); in enc_wchar_pointer()
111 free(utf16); in enc_wchar_pointer()
/src/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c84 char *utf16 = p; in unicode_to_utf16be() local
90 archive_be16enc(utf16, ((uc >> 10) & 0x3ff) + 0xD800); in unicode_to_utf16be()
91 archive_be16enc(utf16+2, (uc & 0x3ff) + 0xDC00); in unicode_to_utf16be()
94 archive_be16enc(utf16, (uint16_t)uc); in unicode_to_utf16be()
111 char *utf16 = p; in unicode_to_utf16le() local
117 archive_le16enc(utf16, ((uc >> 10) & 0x3ff) + 0xD800); in unicode_to_utf16le()
118 archive_le16enc(utf16+2, (uc & 0x3ff) + 0xDC00); in unicode_to_utf16le()
121 archive_le16enc(utf16, (uint16_t)uc); in unicode_to_utf16le()
/src/contrib/libarchive/libarchive/
H A Darchive_string.c2601 const char *utf16 = s; in utf16_to_unicode() local
2613 uc = archive_be16dec(utf16); in utf16_to_unicode()
2615 uc = archive_le16dec(utf16); in utf16_to_unicode()
2616 utf16 += 2; in utf16_to_unicode()
2624 uc2 = archive_be16dec(utf16); in utf16_to_unicode()
2626 uc2 = archive_le16dec(utf16); in utf16_to_unicode()
2631 utf16 += 2; in utf16_to_unicode()
2651 return (((int)(utf16 - s)) * -1); in utf16_to_unicode()
2654 return ((int)(utf16 - s)); in utf16_to_unicode()
2660 char *utf16 = p; in unicode_to_utf16be() local
[all …]
H A Darchive_write_set_format_iso9660.c2220 int utf16 = (high << 8) | low; in joliet_allowed_char() local
2222 if (utf16 <= 0x001F) in joliet_allowed_char()
2225 switch (utf16) { in joliet_allowed_char()
/src/contrib/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1541 llvm::SmallVectorImpl<wchar_t> &utf16) {
1545 original.size(), utf16.begin(), 0);
1551 utf16.reserve(len + 1);
1552 utf16.resize_for_overwrite(len);
1556 original.size(), utf16.begin(), utf16.size());
1563 // Make utf16 null terminated.
1564 utf16.push_back(0);
1565 utf16.pop_back();
1571 llvm::SmallVectorImpl<wchar_t> &utf16) {
1572 return CodePageToUTF16(CP_UTF8, utf8, utf16);
[all …]
/src/contrib/libfido2/src/
H A Dwinhello.c164 wchar_t *utf16; in to_utf16() local
175 if ((utf16 = calloc((size_t)nch, sizeof(*utf16))) == NULL) { in to_utf16()
179 if (MultiByteToWideChar(CP_UTF8, 0, utf8, -1, utf16, nch) != nch) { in to_utf16()
181 free(utf16); in to_utf16()
185 return utf16; in to_utf16()
/src/crypto/heimdal/lib/wind/
H A DChangeLog11 * Add utf8 <-> utf16 support.
19 * Support utf8 to utf16 conversion.
/src/contrib/expat/lib/
H A Dxmltok.c1313 unsigned short utf16[256]; member
1384 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1415 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding()
1426 e->utf16[i] = 0; in XmlInitUnknownEncoding()
1434 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c); in XmlInitUnknownEncoding()
1438 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding()
1451 e->utf16[i] = (unsigned short)c; in XmlInitUnknownEncoding()
/src/contrib/file/magic/Magdir/
H A Dscientific69 # ged.trid.xml ged-utf8.trid.xml ged-utf16.trid.xml
H A Dfilesystems1578 # number of utf16 characters of loadername
/src/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc1128 const WCHAR* utf16 = String::AnsiToUtf16("str"); in TEST() local
1129 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3)); in TEST()
1130 delete[] utf16; in TEST()
1137 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); in TEST() local
1138 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3)); in TEST()
1139 delete[] utf16; in TEST()
/src/crypto/heimdal/
H A DChangeLog83 * lib/krb5/crypto.c: Use wind_utf8ucs2_length to convert the password to utf16.
/src/contrib/openpam/
H A Dconfigure2810 char16_t const *utf16 = u"UTF-8 string \u2500";