/prebuilts/go/darwin-x86/src/unicode/utf16/ |
export_test.go | 5 package utf16 package
|
utf16.go | 5 // Package utf16 implements encoding and decoding of UTF-16 sequences. 6 package utf16 package
|
/prebuilts/go/linux-x86/src/unicode/utf16/ |
export_test.go | 5 package utf16 package
|
utf16.go | 5 // Package utf16 implements encoding and decoding of UTF-16 sequences. 6 package utf16 package
|
/frameworks/base/libs/androidfw/ |
Util.cpp | 51 std::u16string utf16; local 52 utf16.resize(utf16_length); 53 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin(), 55 return utf16; 58 std::string Utf16ToUtf8(const StringPiece16& utf16) { 59 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); 66 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
|
/dalvik/libdex/ |
DexUtf.cpp | 69 u2 utf16 = dexGetUtf16FromUtf8(pUtf8Ptr); local 72 switch (utf16 >> 8) { 75 return (utf16 > 0x00a0); 85 utf16 = dexGetUtf16FromUtf8(pUtf8Ptr); 86 return (utf16 >= 0xdc00) && (utf16 <= 0xdfff); 98 switch (utf16 & 0xfff8) {
|
/external/libchrome/base/strings/ |
utf_string_conversions_unittest.cc | 128 const wchar_t* utf16; member in struct:base::WideToUTF8Case 148 WideToUTF8(test.utf16, wcslen(test.utf16), &converted));
|
string_util_unittest.cc | 480 string16 utf16 = ASCIIToUTF16(char_cases[i]); local 481 EXPECT_EQ(WideToUTF16(wchar_cases[i]), utf16); local [all...] |
/external/skia/src/pdf/ |
SkPDFUtils.h | 105 uint16_t utf16[2] = {0, 0}; local 106 size_t len = SkUTF16_FromUnichar(utf32, utf16); 108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); 110 SkPDFUtils::WriteUInt16BE(wStream, utf16[1]);
|
/external/harfbuzz_ng/src/ |
hb-icu.cc | 39 #include <unicode/utf16.h> 190 UChar utf16[4], normalized[5]; local 197 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); 199 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); 203 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); 249 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local 260 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err) 319 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local [all...] |
/frameworks/base/libs/hwui/tests/common/ |
TestUtils.cpp | 123 auto utf16 = asciiToUtf16(text); local 124 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, 0, paint, nullptr); 129 auto utf16 = asciiToUtf16(text); local 130 canvas->drawTextOnPath(utf16.get(), strlen(text), 0, path, 0, 0, paint, nullptr); 154 std::unique_ptr<uint16_t[]> utf16(new uint16_t[length]); 156 utf16.get()[i] = str[i]; 158 return utf16;
|
/system/core/base/ |
utf8_test.cpp | 76 std::wstring utf16; local 77 EXPECT_TRUE(UTF8ToWide(utf8, &utf16)); 78 return utf16; 81 static std::string WideToUTF8(const std::wstring& utf16) { 83 EXPECT_TRUE(WideToUTF8(utf16, &utf8)); 207 const wchar_t* utf16; member in struct:android::base::WideToUTF8Case 243 const bool success = WideToUTF8(convert_cases[i].utf16, 244 wcslen(convert_cases[i].utf16), 309 static std::string UTF16ToUTF8(const string16& utf16) { 310 return WideToUTF8(utf16); [all...] |
/external/ImageMagick/coders/ |
emf.c | 183 static size_t UTF8ToUTF16(const unsigned char *utf8,wchar_t *utf16) 188 if (utf16 != (wchar_t *) NULL) 199 q=utf16; 234 return(q-utf16); 272 *utf16; 284 utf16=(wchar_t *) AcquireQuantumMemory(length+1,sizeof(*utf16)); 285 if (utf16 == (wchar_t *) NULL) 288 utf16[i]=source[i]; 289 return(utf16); 268 *utf16; local [all...] |
pdf.c | 1086 *utf16; local 1280 *utf16; local [all...] |
/external/harfbuzz_ng/test/api/ |
test-buffer.c | 33 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:__anon19942 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/ |
unisetperf.cpp | 213 UChar utf16[2]; local 217 utf16[0]=(UChar)c; 218 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) { 223 utf16[0]=(UChar)c; 225 utf16[1]=(UChar)c2; 226 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) { 264 UChar utf16[2]; local 268 utf16[0]=(UChar)c; 269 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) { 274 utf16[0]=(UChar)c [all...] |
/frameworks/base/tools/aapt2/util/ |
Util.cpp | 451 std::u16string utf16; local 452 utf16.resize(utf16_length); 454 &*utf16.begin(), utf16_length + 1); 455 return utf16; 458 std::string Utf16ToUtf8(const StringPiece16& utf16) { 459 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length()); 466 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
|
/external/icu/icu4c/source/test/cintltst/ |
ucnvseltst.c | 447 static UChar utf16[10000]; local 472 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); 482 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); 483 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); 485 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt); 486 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb);
|
/external/libexif/libexif/ |
exif-entry.c | 1383 unsigned short *utf16 = exif_mem_alloc (e->priv->mem, e->size+sizeof(unsigned short)); local [all...] |
/external/libchrome/base/ |
values_unittest.cc | 149 std::unique_ptr<Value> utf16_value(new StringValue(ASCIIToUTF16("utf16"))); 155 string16 utf16 = ASCIIToUTF16("http://google.com"); local 158 ASSERT_TRUE(narrow_value->GetAsString(&utf16)); 161 ASSERT_EQ(ASCIIToUTF16("narrow"), utf16); 165 ASSERT_TRUE(utf16_value->GetAsString(&utf16)); 167 ASSERT_EQ(std::string("utf16"), narrow); 168 ASSERT_EQ(ASCIIToUTF16("utf16"), utf16); [all...] |
/external/skia/samplecode/ |
SampleAll.cpp | 302 short utf16[] = {'u', 't', 'f', '1', '6', 0x2026 }; local 425 canvas->drawTextOnPath((void*) utf16, sizeof(utf16), path, &matrix, paint);
|
/external/syslinux/core/fs/fat/ |
fat.c | 361 uint16_t utf16; member in struct:unicache 374 if (__likely(uc->utf16 == cp)) { 380 uc->utf16 = cp;
|
/external/icu/icu4c/source/common/ |
unistr.cpp | 31 #include "unicode/utf16.h" 463 UChar *utf16 = result.getBuffer(capacity); local 466 u_strFromUTF32WithSub(utf16, result.getCapacity(), &length16, 1339 UChar *utf16 = getBuffer(capacity); local [all...] |
/external/icu/icu4c/source/test/intltest/ |
ustrtest.cpp | 18 #include "unicode/utf16.h" 235 static const UChar utf16[]={ 0x61, 0xE4, 0xDF, 0x4E00 }; local 238 UnicodeString from16(FALSE, utf16, UPRV_LENGTHOF(utf16)); 1830 static const UChar utf16[] = { local 1896 static const UChar utf16[] = { local [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/expat/ |
xmltok.c | 1251 unsigned short utf16[256];
member in struct:unknown_encoding [all...] |