Home
last modified time | relevance | path

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

/freebsd-13.1/share/i18n/esdb/UTF/
H A DMakefile8 UTF-16-var= utf16
10 UTF-16BE-var= utf16,big,force
12 UTF-16LE-var= utf16,little,force
14 UTF-16-INTERNAL-var= utf16,internal,force
16 UTF-16-SWAPPED-var= utf16,swapped,force
H A DUTF.alias11 16 utf16
/freebsd-13.1/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()
/freebsd-13.1/crypto/openssl/crypto/pkcs12/
H A Dp12_utl.c149 static int bmp_to_utf8(char *str, const unsigned char *utf16, int len) in bmp_to_utf8() argument
158 utf32chr = (utf16[0]<<8) | utf16[1]; in bmp_to_utf8()
167 lo = (utf16[2]<<8) | utf16[3]; in bmp_to_utf8()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DConvertUTF.h292 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16);
294 std::error_code CurCPToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16);
295 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
298 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
/freebsd-13.1/contrib/libarchive/libarchive/test/
H A Dtest_archive_string_conversion.c86 char *utf16 = p; in unicode_to_utf16be() local
92 archive_be16enc(utf16, ((uc >> 10) & 0x3ff) + 0xD800); in unicode_to_utf16be()
93 archive_be16enc(utf16+2, (uc & 0x3ff) + 0xDC00); in unicode_to_utf16be()
96 archive_be16enc(utf16, uc); in unicode_to_utf16be()
113 char *utf16 = p; in unicode_to_utf16le() local
119 archive_le16enc(utf16, ((uc >> 10) & 0x3ff) + 0xD800); in unicode_to_utf16le()
120 archive_le16enc(utf16+2, (uc & 0x3ff) + 0xDC00); in unicode_to_utf16le()
123 archive_le16enc(utf16, uc); in unicode_to_utf16le()
/freebsd-13.1/contrib/libfido2/src/
H A Dwinhello.c47 wchar_t *utf16; in to_utf16() local
58 if ((utf16 = calloc((size_t)nch, sizeof(*utf16))) == NULL) { in to_utf16()
62 if (MultiByteToWideChar(CP_UTF8, 0, utf8, -1, utf16, nch) != nch) { in to_utf16()
64 free(utf16); in to_utf16()
68 return utf16; in to_utf16()
72 to_utf8(const wchar_t *utf16) in to_utf8() argument
77 if (utf16 == NULL) { in to_utf8()
81 if ((nch = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, utf16, in to_utf8()
90 if (WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, utf16, -1, in to_utf8()
/freebsd-13.1/contrib/libarchive/libarchive/
H A Darchive_string.c2537 const char *utf16 = s; in utf16_to_unicode() local
2552 utf16 += 2; in utf16_to_unicode()
2567 utf16 += 2; in utf16_to_unicode()
2590 return ((int)(utf16 - s)); in utf16_to_unicode()
2596 char *utf16 = p; in unicode_to_utf16be() local
2610 archive_be16enc(utf16, uc); in unicode_to_utf16be()
2618 char *utf16 = p; in unicode_to_utf16le() local
2632 archive_le16enc(utf16, uc); in unicode_to_utf16le()
3758 utf16 += n; in best_effort_strncat_from_utf16()
3795 char *utf16; in best_effort_strncat_to_utf16() local
[all …]
H A Darchive_write_set_format_iso9660.c2215 int utf16 = (high << 8) | low; in joliet_allowed_char() local
2217 if (utf16 <= 0x001F) in joliet_allowed_char()
2220 switch (utf16) { in joliet_allowed_char()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1492 utf16.reserve(len + 1);
1493 utf16.set_size(len);
1496 original.size(), utf16.begin(), utf16.size());
1503 // Make utf16 null terminated.
1504 utf16.push_back(0);
1505 utf16.pop_back();
1512 return CodePageToUTF16(CP_UTF8, utf8, utf16);
1517 return CodePageToUTF16(CP_ACP, curcp, utf16);
1552 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len,
1554 return UTF16ToCodePage(CP_UTF8, utf16, utf16_len, utf8);
[all …]
/freebsd-13.1/crypto/heimdal/lib/wind/
H A DChangeLog11 * Add utf8 <-> utf16 support.
19 * Support utf8 to utf16 conversion.
/freebsd-13.1/contrib/expat/lib/
H A Dxmltok.c1317 unsigned short utf16[256]; member
1388 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16()
1419 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding()
1430 e->utf16[i] = 0; in XmlInitUnknownEncoding()
1438 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c); in XmlInitUnknownEncoding()
1442 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding()
1455 e->utf16[i] = (unsigned short)c; in XmlInitUnknownEncoding()
/freebsd-13.1/contrib/googletest/googletest/test/
H A Dgtest_unittest.cc1071 const WCHAR* utf16 = String::AnsiToUtf16("str"); in TEST() local
1072 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3)); in TEST()
1073 delete [] utf16; in TEST()
1080 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); in TEST() local
1081 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3)); in TEST()
1082 delete [] utf16; in TEST()
/freebsd-13.1/crypto/heimdal/
H A DChangeLog83 * lib/krb5/crypto.c: Use wind_utf8ucs2_length to convert the password to utf16.
/freebsd-13.1/contrib/file/magic/Magdir/
H A Dfilesystems1578 # number of utf16 characters of loadername