/external/harfbuzz_ng/src/ |
D | hb-icu.cc | 189 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local 196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); in hb_icu_unicode_compose() 198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); in hb_icu_unicode_compose() 202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose() 248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local 259 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err); in hb_icu_unicode_decompose() 263 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose() 318 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose_compatibility() local 327 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), u, err); in hb_icu_unicode_decompose_compatibility() 333 …len = unorm_normalize (utf16, len, UNORM_NFKD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose_compatibility()
|
/external/icu/icu4c/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 209 UChar utf16[2]; in SpanUTF16() local 213 utf16[0]=(UChar)c; in SpanUTF16() 214 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 219 utf16[0]=(UChar)c; in SpanUTF16() 221 utf16[1]=(UChar)c2; in SpanUTF16() 222 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 260 UChar utf16[2]; in SpanBackUTF16() local 264 utf16[0]=(UChar)c; in SpanBackUTF16() 265 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) { in SpanBackUTF16() 270 utf16[0]=(UChar)c; in SpanBackUTF16() [all …]
|
/external/skia/include/core/ |
D | SkUtils.h | 105 int SkUTF16_CountUnichars(const uint16_t utf16[]); 106 int SkUTF16_CountUnichars(const uint16_t utf16[], int numberOf16BitValues); 111 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = NULL); 113 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
|
/external/skia/src/core/ |
D | SkUtils.cpp | 398 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues, in SkUTF16_ToUTF8() argument 405 SkASSERT(utf16 != NULL); in SkUTF16_ToUTF8() 407 const uint16_t* stop = utf16 + numberOf16BitValues; in SkUTF16_ToUTF8() 411 while (utf16 < stop) { in SkUTF16_ToUTF8() 412 size += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), NULL); in SkUTF16_ToUTF8() 416 while (utf16 < stop) { in SkUTF16_ToUTF8() 417 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8); in SkUTF16_ToUTF8()
|
/external/icu/icu4c/source/samples/ucnv/ |
D | Makefile | 20 CLEANFILES += *.out data40.utf16 data41.utf16
|
/external/icu/icu4c/source/test/cintltst/ |
D | ucnvseltst.c | 445 static UChar utf16[10000]; in TestSelector() local 470 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector() 480 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); in TestSelector() 481 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); in TestSelector() 483 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt); in TestSelector() 484 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb); in TestSelector()
|
D | ccapitst.c | 2451 UChar utf16[U16_MAX_LENGTH]; in getTestChar() local 2468 U16_APPEND_UNSAFE(utf16, utf16Length, c); in getTestChar() 2472 utf16Source=utf16; in getTestChar() 2476 &utf16Source, utf16+utf16Length, in getTestChar() 2480 utf16Source=utf16; in getTestChar() 2484 &utf16Source, utf16+utf16Length, in getTestChar() 2757 utf16[]={ in TestConvertAlgorithmic() local 2826 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode); in TestConvertAlgorithmic() 2847 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode); in TestConvertAlgorithmic() 2861 …length=ucnv_fromAlgorithmic(cnv, (UConverterType)99, target, 0, (const char *)utf16, 2, &errorCode… in TestConvertAlgorithmic()
|
/external/llvm/lib/Support/Windows/ |
D | WindowsSupport.h | 175 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16); 176 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, 179 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
|
D | Path.inc | 797 llvm::SmallVectorImpl<wchar_t> &utf16) { 800 utf8.size(), utf16.begin(), 0); 805 utf16.reserve(len + 1); 806 utf16.set_size(len); 809 utf8.size(), utf16.begin(), utf16.size()); 815 // Make utf16 null terminated. 816 utf16.push_back(0); 817 utf16.pop_back(); 823 std::error_code UTF16ToCodePage(unsigned codepage, const wchar_t *utf16, 828 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.begin(), [all …]
|
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 439 int UTF16ToUTF8(const uint16_t *utf16, unsigned int maxinput, in UTF16ToUTF8() argument 447 if (!utf16 || !maxinput || !utf8 || !maxoutput) in UTF16ToUTF8() 453 s16idx < maxinput && utf16[s16idx] && maxoutput; in UTF16ToUTF8() 455 uint16_t codeunit = le16toh(utf16[s16idx]); in UTF16ToUTF8() 528 int UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput) in UTF8ToUTF16() argument 536 if (!utf8 || !utf16 || !maxoutput) in UTF8ToUTF16() 602 utf16[s16idx++] = code_point; in UTF8ToUTF16() 606 utf16[s16idx++] = 0xD800 | ((code_point >> 10) - 0x0040); in UTF8ToUTF16() 607 utf16[s16idx++] = 0xDC00 | (code_point & 0x03FF); in UTF8ToUTF16() 626 utf16[s16idx++] = 0; in UTF8ToUTF16()
|
D | cgpt.h | 131 int UTF16ToUTF8(const uint16_t *utf16, unsigned int maxinput, 141 int UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput);
|
/external/harfbuzz_ng/test/api/ |
D | test-buffer.c | 33 static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'}; variable 82 hb_buffer_add_utf16 (b, utf16, G_N_ELEMENTS (utf16), 1, G_N_ELEMENTS (utf16) - 2); in fixture_init() 710 const uint16_t utf16[8]; member 742 for (u_len = 0; test->utf16[u_len]; u_len++) in test_buffer_utf16_conversion() 748 hb_buffer_add_utf16 (b, test->utf16, u_len, 1, u_len - 2); in test_buffer_utf16_conversion()
|
/external/expat/lib/ |
D | xmltok.c | 1251 unsigned short utf16[256]; member 1332 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16() 1365 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding() 1374 e->utf16[i] = 0; in XmlInitUnknownEncoding() 1384 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c); in XmlInitUnknownEncoding() 1389 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding() 1403 e->utf16[i] = (unsigned short)c; in XmlInitUnknownEncoding()
|
/external/icu/icu4c/source/test/intltest/ |
D | ustrtest.cpp | 241 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; in TestBasicManipulation() local 244 UnicodeString from16(FALSE, utf16, UPRV_LENGTHOF(utf16)); in TestBasicManipulation() 1836 static const UChar utf16[] = { in TestUTF32() local 1845 UnicodeString(FALSE, utf16, UPRV_LENGTHOF(utf16)). in TestUTF32() 1902 static const UChar utf16[] = { in TestUTF8() local 1909 UnicodeString us(FALSE, utf16, UPRV_LENGTHOF(utf16)); in TestUTF8()
|
/external/skia/src/ports/ |
D | SkFontHost_mac.cpp | 1958 UniChar* utf16 = charStorage.reset(2 * glyphCount); in onCharsToGlyphs() local 1959 src = utf16; in onCharsToGlyphs() 1962 utf16 += SkUTF16_FromUnichar(uni, utf16); in onCharsToGlyphs() 1964 srcCount = SkToInt(utf16 - src); in onCharsToGlyphs() 1980 UniChar* utf16 = charStorage.reset(2 * glyphCount); in onCharsToGlyphs() local 1981 src = utf16; in onCharsToGlyphs() 1983 utf16 += SkUTF16_FromUnichar(utf32[i], utf16); in onCharsToGlyphs() 1985 srcCount = SkToInt(utf16 - src); in onCharsToGlyphs()
|
D | SkFontHost_win.cpp | 777 WCHAR utf16[2]; in generateCharToGlyph() local 779 if (SkUTF16_FromUnichar(utf32, (uint16_t*)utf16) == 1) { in generateCharToGlyph() 795 DWORD result = GetGlyphIndicesW(fDDC, utf16, 1, &index, GGI_MARK_NONEXISTING_GLYPHS); in generateCharToGlyph() 816 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &sc, NULL, si, &numItems), in generateCharToGlyph() 825 HRZM(ScriptShape(fDDC, &fSC, utf16, numWCHAR, maxGlyphs, &si[0].a, in generateCharToGlyph() 2028 static uint16_t nonBmpCharToGlyph(HDC hdc, SCRIPT_CACHE* scriptCache, const WCHAR utf16[2]) { in nonBmpCharToGlyph() 2039 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &scriptControl, NULL, si, &numItems), in nonBmpCharToGlyph() 2048 HRZM(ScriptShape(hdc, scriptCache, utf16, numWCHAR, maxGlyphs, &si[0].a, in nonBmpCharToGlyph()
|
/external/skia/samplecode/ |
D | SampleAll.cpp | 345 short utf16[] = {'u', 't', 'f', '1', '6', 0x2026 }; in drawPicture() local 475 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, paint); in drawPicture()
|
/external/libexif/libexif/ |
D | exif-entry.c | 1383 unsigned short *utf16 = exif_mem_alloc (e->priv->mem, e->size+sizeof(unsigned short)); in exif_entry_get_value() local 1384 if (!utf16) break; in exif_entry_get_value() 1385 memcpy(utf16, e->data, e->size); in exif_entry_get_value() 1386 utf16[e->size/sizeof(unsigned short)] = 0; in exif_entry_get_value() 1390 exif_convert_utf16_to_utf8(val, utf16, maxlen); in exif_entry_get_value() 1391 exif_mem_free(e->priv->mem, utf16); in exif_entry_get_value()
|
/external/icu/icu4c/source/common/ |
D | unistr.cpp | 397 UChar *utf16 = result.getBuffer(capacity); in fromUTF32() local 400 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, in fromUTF32() 1223 UChar *utf16 = getBuffer(capacity); in setToUTF8() local 1226 u_strFromUTF8WithSub(utf16, getCapacity(), &length16, in setToUTF8()
|
/external/protobuf/gtest/test/ |
D | gtest_unittest.cc | 1193 const WCHAR* utf16 = String::AnsiToUtf16("str"); in TEST() local 1194 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3)); in TEST() 1195 delete [] utf16; in TEST() 1202 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); in TEST() local 1203 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3)); in TEST() 1204 delete [] utf16; in TEST()
|
/external/gtest/test/ |
D | gtest_unittest.cc | 1056 const WCHAR* utf16 = String::AnsiToUtf16("str"); in TEST() local 1057 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3)); in TEST() 1058 delete [] utf16; in TEST() 1065 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); in TEST() local 1066 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3)); in TEST() 1067 delete [] utf16; in TEST()
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest_unittest.cc | 1328 const WCHAR* utf16 = String::AnsiToUtf16("str"); in TEST() local 1329 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3)); in TEST() 1330 delete [] utf16; in TEST() 1337 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); in TEST() local 1338 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3)); in TEST() 1339 delete [] utf16; in TEST()
|
/external/icu/icu4j/main/tests/charset/src/com/ibm/icu/dev/test/charset/ |
D | TestCharset.java | 1842 Charset utf16 = Charset.forName("UTF-16"); in TestUTF16Bom() local 1843 CharsetDecoder dc = utf16.newDecoder(); in TestUTF16Bom() 2614 Charset utf16 = Charset.forName("UTF-32"); in TestUTF32BOM() local 2615 CharsetDecoder dc = utf16.newDecoder(); in TestUTF32BOM()
|
/external/libxml2/ |
D | ChangeLog | 8311 * test/utf16lebom.xml, test/utf16bebom.xml, result/utf16?ebom*:
|