Searched defs:utf16 (Results 1 - 16 of 16) sorted by relevance

/external/harfbuzz_ng/src/
H A Dhb-icu.cc189 UChar utf16[4], normalized[5]; local
196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
259 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err);
263 len = unorm_normalize (utf16, le
318 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
[all...]
/external/harfbuzz_ng/test/api/
H A Dtest-buffer.c33 static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'}; variable
50 "utf16",
82 hb_buffer_add_utf16 (b, utf16, G_N_ELEMENTS (utf16), 1, G_N_ELEMENTS (utf16) - 2);
710 const uint16_t utf16[8]; member in struct:__anon5454
714 /* note: we skip the first and last item from utf16 when adding to buffer */
742 for (u_len = 0; test->utf16[u_len]; u_len++)
748 hb_buffer_add_utf16 (b, test->utf16, u_len, 1, u_len - 2);
/external/icu/icu4c/source/test/perf/unisetperf/
H A Dunisetperf.cpp209 UChar utf16[2]; local
213 utf16[0]=(UChar)c;
214 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) {
219 utf16[0]=(UChar)c;
221 utf16[1]=(UChar)c2;
222 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) {
260 UChar utf16[2]; local
264 utf16[0]=(UChar)c;
265 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) {
270 utf16[
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Ducnvseltst.c445 static UChar utf16[10000]; local
470 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status);
480 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt);
481 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb);
483 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt);
484 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb);
H A Dccapitst.c2451 UChar utf16[U16_MAX_LENGTH]; local
2468 U16_APPEND_UNSAFE(utf16, utf16Length, c);
2472 utf16Source=utf16;
2476 &utf16Source, utf16+utf16Length,
2480 utf16Source=utf16;
2484 &utf16Source, utf16+utf16Length,
2757 utf16[]={ local
2826 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2847 length=ucnv_fromAlgorithmic(cnv, UCNV_UTF16, target, 0, (const char *)utf16, 2, &errorCode);
2861 length=ucnv_fromAlgorithmic(cnv, (UConverterType)99, target, 0, (const char *)utf16,
[all...]
/external/libexif/libexif/
H A Dexif-entry.c1383 unsigned short *utf16 = exif_mem_alloc (e->priv->mem, e->size+sizeof(unsigned short)); local
1384 if (!utf16) break;
1385 memcpy(utf16, e->data, e->size);
1386 utf16[e->size/sizeof(unsigned short)] = 0;
1390 exif_convert_utf16_to_utf8(val, utf16, maxlen);
1391 exif_mem_free(e->priv->mem, utf16);
/external/skia/samplecode/
H A DSampleAll.cpp345 short utf16[] = {'u', 't', 'f', '1', '6', 0x2026 }; local
475 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, paint);
/external/icu/icu4c/source/test/intltest/
H A Dustrtest.cpp16 #include "unicode/utf16.h"
241 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; local
244 UnicodeString from16(FALSE, utf16, UPRV_LENGTHOF(utf16));
1836 static const UChar utf16[] = { local
1845 UnicodeString(FALSE, utf16, UPRV_LENGTHOF(utf16)).
1902 static const UChar utf16[] = { local
1909 UnicodeString us(FALSE, utf16, UPRV_LENGTHOF(utf16));
[all...]
/external/vboot_reference/cgpt/
H A Dcgpt_common.c439 int UTF16ToUTF8(const uint16_t *utf16, unsigned int maxinput, argument
447 if (!utf16 || !maxinput || !utf8 || !maxoutput)
453 s16idx < maxinput && utf16[s16idx] && maxoutput;
455 uint16_t codeunit = le16toh(utf16[s16idx]);
528 int UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput) argument
536 if (!utf8 || !utf16 || !maxoutput)
602 utf16[s16idx++] = code_point;
606 utf16[s16idx++] = 0xD800 | ((code_point >> 10) - 0x0040);
607 utf16[s16idx++] = 0xDC00 | (code_point & 0x03FF);
626 utf16[s16id
[all...]
/external/expat/lib/
H A Dxmltok.c1251 unsigned short utf16[256]; member in struct:unknown_encoding
1332 unsigned short c = uenc->utf16[(unsigned char)**fromP];
1365 e->utf16[i] = 0xFFFF;
1374 e->utf16[i] = 0;
1384 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c);
1389 e->utf16[i] = 0xFFFF;
1403 e->utf16[i] = (unsigned short)c;
/external/icu/icu4c/source/common/
H A Dunistr.cpp29 #include "unicode/utf16.h"
397 UChar *utf16 = result.getBuffer(capacity); local
400 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16,
1223 UChar *utf16 = getBuffer(capacity); local
1226 u_strFromUTF8WithSub(utf16, getCapacity(), &length16,
/external/skia/src/ports/
H A DSkFontHost_win.cpp353 // Unicode code points that require conjugate pairs in utf16 are not
777 WCHAR utf16[2]; local
779 if (SkUTF16_FromUnichar(utf32, (uint16_t*)utf16) == 1) {
795 DWORD result = GetGlyphIndicesW(fDDC, utf16, 1, &index, GGI_MARK_NONEXISTING_GLYPHS);
816 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &sc, NULL, si, &numItems),
825 HRZM(ScriptShape(fDDC, &fSC, utf16, numWCHAR, maxGlyphs, &si[0].a,
2028 static uint16_t nonBmpCharToGlyph(HDC hdc, SCRIPT_CACHE* scriptCache, const WCHAR utf16[2]) {
2039 HRZM(ScriptItemize(utf16, numWCHAR, maxItems, &scriptControl, NULL, si, &numItems),
2048 HRZM(ScriptShape(hdc, scriptCache, utf16, numWCHAR, maxGlyphs, &si[0].a,
H A DSkFontHost_mac.cpp1480 // Unicode code points that require conjugate pairs in utf16 are not
1958 UniChar* utf16 = charStorage.reset(2 * glyphCount); local
1959 src = utf16;
1962 utf16 += SkUTF16_FromUnichar(uni, utf16);
1964 srcCount = SkToInt(utf16 - src);
1980 UniChar* utf16 = charStorage.reset(2 * glyphCount); local
1981 src = utf16;
1983 utf16 += SkUTF16_FromUnichar(utf32[i], utf16);
[all...]
/external/google-breakpad/src/testing/gtest/test/
H A Dgtest_unittest.cc1328 const WCHAR* utf16 = String::AnsiToUtf16("str"); local
1329 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3));
1330 delete [] utf16;
1337 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); local
1338 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3));
1339 delete [] utf16;
/external/gtest/test/
H A Dgtest_unittest.cc1056 const WCHAR* utf16 = String::AnsiToUtf16("str"); local
1057 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3));
1058 delete [] utf16;
1065 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); local
1066 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3));
1067 delete [] utf16;
/external/protobuf/gtest/test/
H A Dgtest_unittest.cc1193 const WCHAR* utf16 = String::AnsiToUtf16("str"); local
1194 EXPECT_EQ(0, wcsncmp(L"str", utf16, 3));
1195 delete [] utf16;
1202 const WCHAR* utf16 = String::AnsiToUtf16(".:\\ \"*?"); local
1203 EXPECT_EQ(0, wcsncmp(L".:\\ \"*?", utf16, 3));
1204 delete [] utf16;

Completed in 1363 milliseconds