Home
last modified time | relevance | path

Searched full:utf16 (Results 1 – 25 of 82) sorted by relevance

1234

/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DConvertUTF.h129 typedef unsigned short UTF16; /* at least 16 bits */ typedef
162 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
181 const UTF16** sourceStart, const UTF16* sourceEnd,
189 const UTF16** sourceStart, const UTF16* sourceEnd,
194 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags);
212 * Convert an UTF8 StringRef to UTF8, UTF16, or UTF32 depending on
288 * Converts a stream of raw bytes assumed to be UTF16 into a UTF8 std::string.
297 * Converts a UTF16 string into a UTF8 std::string.
303 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out);
329 SmallVectorImpl<UTF16> &DstUTF16);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DConvertUTFWrapper.cpp37 UTF16 *targetStart = reinterpret_cast<UTF16 *>(ResultPtr); in ConvertUTF8toWide()
95 const UTF16 *Src = reinterpret_cast<const UTF16 *>(SrcBytes.begin()); in convertUTF16ToUTF8String()
96 const UTF16 *SrcEnd = reinterpret_cast<const UTF16 *>(SrcBytes.end()); in convertUTF16ToUTF8String()
98 assert((uintptr_t)Src % sizeof(UTF16) == 0); in convertUTF16ToUTF8String()
101 std::vector<UTF16> ByteSwapped; in convertUTF16ToUTF8String()
104 for (UTF16 &I : ByteSwapped) in convertUTF16ToUTF8String()
135 bool convertUTF16ToUTF8String(ArrayRef<UTF16> Src, std::string &Out) { in convertUTF16ToUTF8String()
138 Src.size() * sizeof(UTF16)), in convertUTF16ToUTF8String()
201 SmallVectorImpl<UTF16> &DstUTF16) { in convertUTF8ToUTF16String()
220 UTF16 *Dst = &DstUTF16[0]; in convertUTF8ToUTF16String()
[all …]
H A DConvertUTF.cpp162 UTF16** targetStart, UTF16* targetEnd, ConversionFlags flags) { in ConvertUTF32toUTF16()
165 UTF16* target = *targetStart; in ConvertUTF32toUTF16()
183 *target++ = (UTF16)ch; /* normal case */ in ConvertUTF32toUTF16()
198 *target++ = (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START); in ConvertUTF32toUTF16()
199 *target++ = (UTF16)((ch & halfMask) + UNI_SUR_LOW_START); in ConvertUTF32toUTF16()
210 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF32()
213 const UTF16* source = *sourceStart; in ConvertUTF16toUTF32()
217 … const UTF16* oldSource = source; /* In case we have to back up because of target overflow. */ in ConvertUTF16toUTF32()
264 const UTF16** sourceStart, const UTF16* sourceEnd, in ConvertUTF16toUTF8()
267 const UTF16* source = *sourceStart; in ConvertUTF16toUTF8()
[all …]
H A DBinaryStreamReader.cpp101 Error BinaryStreamReader::readWideString(ArrayRef<UTF16> &Dest) {
104 const UTF16 *C; in readWideString()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DWindowsResource.h102 ArrayRef<UTF16> getTypeString() const { return Type; } in getTypeString()
105 ArrayRef<UTF16> getNameString() const { return Name; } in getNameString()
127 ArrayRef<UTF16> Type;
130 ArrayRef<UTF16> Name;
164 ArrayRef<std::vector<UTF16>> getStringTable() const { return StringTable; } in getStringTable()
203 std::vector<std::vector<UTF16>> &StringTable,
206 std::vector<std::vector<UTF16>> &StringTable);
208 std::vector<std::vector<UTF16>> &StringTable);
216 TreeNode &addNameChild(ArrayRef<UTF16> NameRef,
217 std::vector<std::vector<UTF16>> &StringTable);
[all …]
/freebsd/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()
/freebsd/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
/freebsd/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/contrib/llvm-project/lldb/source/Plugins/Language/CPlusPlus/
H A DCxxStringTypes.cpp42 case StringElementType::UTF16: in getElementTraits()
104 return CharStringSummaryProvider<StringElementType::UTF16>(valobj, stream); in Char16StringSummaryProvider()
142 return StringPrinter::ReadStringAndDumpToStream<StringElementType::UTF16>( in WCharStringSummaryProvider()
161 return CharSummaryProvider<StringElementType::UTF16>(valobj, stream); in Char16SummaryProvider()
204 return StringPrinter::ReadBufferAndDumpToStream<StringElementType::UTF16>( in WCharSummaryProvider()
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_utl.c118 ulen += 2; /* for trailing UTF16 zero */ in OPENSSL_utf82uni()
150 static int bmp_to_utf8(char *str, const unsigned char *utf16, int len) in bmp_to_utf8() argument
159 utf32chr = (utf16[0]<<8) | utf16[1]; in bmp_to_utf8()
168 lo = (utf16[2]<<8) | utf16[3]; in bmp_to_utf8()
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DWindowsResource.cpp99 ArrayRef<UTF16> &Str, bool &IsString) { in readStringOrId()
169 static bool convertUTF16LEToUTF8String(ArrayRef<UTF16> Src, std::string &Out) { in convertUTF16LEToUTF8String()
173 std::vector<UTF16> EndianCorrectedSrc; in convertUTF16LEToUTF8String()
191 UTF8 = "(failed conversion from UTF16)"; in makeDuplicateResourceError()
200 UTF8 = "(failed conversion from UTF16)"; in makeDuplicateResourceError()
217 UTF8 = "(failed conversion from UTF16)"; in printStringOrID()
383 std::vector<std::vector<UTF16>> &StringTable, TreeNode *&Result) { in addEntry()
484 std::vector<std::vector<UTF16>> &StringTable) { in addTypeNode()
493 std::vector<std::vector<UTF16>> &StringTable) { in addNameNode()
535 ArrayRef<UTF16> NameRef, std::vector<std::vector<UTF16>> &StringTable) { in addNameChild()
[all …]
H A DMinidump.cpp28 // UTF16. in getString()
46 SmallVector<UTF16, 32> WStr(Size); in getString()
/freebsd/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 …]
/freebsd/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()
/freebsd/contrib/llvm-project/clang/include/clang/Driver/
H A DJob.h64 /// - MSVC's CL.exe and LINK.exe accept UTF16 on Windows.
65 /// - Clang accepts both UTF8 and UTF16.
67 /// FIXME: When GNU tools learn how to parse UTF16 on Windows, we should
68 /// always use UTF16 for Windows, which is the Windows official encoding for
/freebsd/contrib/llvm-project/llvm/tools/llvm-readobj/
H A DWindowsResourceDumper.cpp22 std::string stripUTF16(const ArrayRef<UTF16> &UTF16Str) { in stripUTF16()
26 for (UTF16 Ch : UTF16Str) { in stripUTF16()
/freebsd/crypto/heimdal/lib/wind/
H A DChangeLog11 * Add utf8 <-> utf16 support.
19 * Support utf8 to utf16 conversion.
/freebsd/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()
/freebsd/contrib/libfido2/src/
H A Dwinhello.c164 wchar_t *utf16; in to_utf16()
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_fido()
160 wchar_t *utf16; to_utf16() local
/freebsd/contrib/libarchive/libarchive/
H A Darchive_string.c2581 const char *utf16 = s; in utf16_to_unicode() local
2593 uc = archive_be16dec(utf16); in utf16_to_unicode()
2595 uc = archive_le16dec(utf16); in utf16_to_unicode()
2596 utf16 += 2; in utf16_to_unicode()
2604 uc2 = archive_be16dec(utf16); in utf16_to_unicode()
2606 uc2 = archive_le16dec(utf16); in utf16_to_unicode()
2611 utf16 += 2; in utf16_to_unicode()
2631 return (((int)(utf16 - s)) * -1); in utf16_to_unicode()
2634 return ((int)(utf16 - s)); in utf16_to_unicode()
2640 char *utf16 = p; in unicode_to_utf16be() local
[all …]
/freebsd/lib/libiconv_modules/UTF1632/
H A Dcitrus_utf1632.c134 /* UTF16 */ in _citrus_UTF1632_mbrtowc_priv()
164 /* UTF16 */ in _citrus_UTF1632_mbrtowc_priv()
277 /* UTF16 */ in _citrus_UTF1632_wcrtomb_priv()
/freebsd/contrib/llvm-project/lldb/source/Plugins/Language/ObjC/
H A DNSString.cpp154 StringPrinter::StringElementType::UTF16>(options); in NSStringSummaryProvider()
205 StringPrinter::StringElementType::UTF16>(options); in NSStringSummaryProvider()
231 StringPrinter::StringElementType::UTF16>(options); in NSStringSummaryProvider()
/freebsd/contrib/llvm-project/lldb/source/DataFormatters/
H A DStringPrinter.cpp501 bool StringPrinter::ReadStringAndDumpToStream<StringElementType::UTF16>( in ReadStringAndDumpToStream()
503 return ReadEncodedBufferAndDumpToStream<llvm::UTF16>( in ReadStringAndDumpToStream()
504 StringElementType::UTF16, options, llvm::ConvertUTF16toUTF8); in ReadStringAndDumpToStream()
529 bool StringPrinter::ReadBufferAndDumpToStream<StringElementType::UTF16>( in ReadBufferAndDumpToStream()
/freebsd/sys/dev/hyperv/utilities/
H A Dhv_kvp.c219 * Convert ip related info in umsg from utf8 to utf16 and store in hmsg
267 * Convert ip related info in hmsg from utf16 to utf8 and store in umsg
348 * Prepare a user kvp msg based on host kvp msg (utf16 to utf8)
460 * Prepare a host kvp msg based on user kvp msg (utf8 to utf16)
487 /* utf16 encoding */ in hv_kvp_convert_usermsg_to_hostmsg()

1234