/external/flac/libFLAC/ |
D | format.c | 308 static unsigned utf8len_(const FLAC__byte *utf8) in utf8len_() argument 310 FLAC__ASSERT(0 != utf8); in utf8len_() 311 if ((utf8[0] & 0x80) == 0) { in utf8len_() 314 else if ((utf8[0] & 0xE0) == 0xC0 && (utf8[1] & 0xC0) == 0x80) { in utf8len_() 315 if ((utf8[0] & 0xFE) == 0xC0) /* overlong sequence check */ in utf8len_() 319 else if ((utf8[0] & 0xF0) == 0xE0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80) { in utf8len_() 320 if (utf8[0] == 0xE0 && (utf8[1] & 0xE0) == 0x80) /* overlong sequence check */ in utf8len_() 323 if (utf8[0] == 0xED && (utf8[1] & 0xE0) == 0xA0) /* D800-DFFF */ in utf8len_() 325 if (utf8[0] == 0xEF && utf8[1] == 0xBF && (utf8[2] & 0xFE) == 0xBE) /* FFFE-FFFF */ in utf8len_() 329 …else if ((utf8[0] & 0xF8) == 0xF0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80 && (utf8… in utf8len_() [all …]
|
/external/skia/src/core/ |
D | SkUtils.cpp | 179 int SkUTF8_CountUnichars(const char utf8[]) { in SkUTF8_CountUnichars() argument 180 SkASSERT(utf8); in SkUTF8_CountUnichars() 185 int c = *(const uint8_t*)utf8; in SkUTF8_CountUnichars() 189 utf8 += SkUTF8_LeadByteToCount(c); in SkUTF8_CountUnichars() 195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { in SkUTF8_CountUnichars() argument 196 SkASSERT(utf8 || 0 == byteLength); in SkUTF8_CountUnichars() 199 const char* stop = utf8 + byteLength; in SkUTF8_CountUnichars() 201 while (utf8 < stop) { in SkUTF8_CountUnichars() 202 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUnichars() 208 SkUnichar SkUTF8_ToUnichar(const char utf8[]) { in SkUTF8_ToUnichar() argument [all …]
|
/external/svox/pico/lib/ |
D | picobase.c | 937 static void picobase_get_utf8char (picoos_uint8 utf8[], picoos_int32 * pos, picobase_utf8char utf8c… in picobase_get_utf8char() argument 944 l = picobase_det_utf8_length(utf8[*pos]); in picobase_get_utf8char() 946 while ((((i < l) && (i < PICOBASE_UTF8_MAXLEN)) && (utf8[*pos] != 0))) { in picobase_get_utf8char() 947 utf8char[i] = utf8[*pos]; in picobase_get_utf8char() 1073 static picobase_utf32 picobase_utf8_to_utf32 (picoos_uint8 utf8[], picoos_uint8 * done) in picobase_utf8_to_utf32() argument 1076 if ((utf8[0] < (picoos_uint8)'\200')) { in picobase_utf8_to_utf32() 1077 return utf8[0]; in picobase_utf8_to_utf32() 1078 } else if ((utf8[0] >= (picoos_uint8)'\370')) { in picobase_utf8_to_utf32() 1080 } else if ((utf8[0] >= (picoos_uint8)'\360')) { in picobase_utf8_to_utf32() 1081 …return ((((262144 * (utf8[0] % 8)) + (4096 * (utf8[1] % 64))) + (64 * (utf8[2] % 64))) + (utf8[3] … in picobase_utf8_to_utf32() [all …]
|
/external/skia/include/core/ |
D | SkUtils.h | 83 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) { in SkUTF8_CountUTF8Bytes() argument 84 SkASSERT(utf8); in SkUTF8_CountUTF8Bytes() 85 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUTF8Bytes() 88 int SkUTF8_CountUnichars(const char utf8[]); 89 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength); 90 SkUnichar SkUTF8_ToUnichar(const char utf8[]); 98 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL); 114 char utf8[] = NULL);
|
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/ |
D | Latin1Converter.java | 107 byte[] utf8 = convertToUTF8((byte) b); in convert() 108 out.append(utf8); in convert() 131 byte[] utf8 = convertToUTF8(readAheadBuffer[0]); in convert() 132 out.append(utf8); in convert() 150 byte[] utf8 = convertToUTF8(b); in convert() 151 out.append(utf8); in convert()
|
/external/okhttp/okio/okio/src/test/java/okio/ |
D | ByteStringTest.java | 38 assertEquals("llo, Worl", byteString.utf8()); in ofCopyRange() 68 @Test public void utf8() throws Exception { in utf8() method in ByteStringTest 72 assertEquals(byteString.utf8(), bronzeHorseman); in utf8() 193 assertEquals("", ByteString.decodeBase64("====").utf8()); in ignoreUnnecessaryPadding() 194 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AAAA====").utf8()); in ignoreUnnecessaryPadding() 198 assertEquals("", ByteString.decodeBase64("").utf8()); in decodeBase64() 210 + "N1cCBpbiB0aGUgcG93ZXIuLi4=").utf8()); in decodeBase64() 216 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64(" AA AA ").utf8()); in decodeBase64WithWhitespace() 217 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64(" AA A\r\nA ").utf8()); in decodeBase64WithWhitespace() 218 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AA AA").utf8()); in decodeBase64WithWhitespace() [all …]
|
/external/gptfdisk/ |
D | gptpart.cc | 82 string utf8 ; in GetDescription() local 114 utf8 += (char) uni ; in GetDescription() 117 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ; in GetDescription() 118 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription() 121 utf8 += (char) ( 0xe0 | ( uni >> 12 ) ) ; in GetDescription() 122 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription() 123 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription() 126 utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ; in GetDescription() 127 utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ; in GetDescription() 128 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription() [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-glib.cc | 253 gchar utf8[12]; in hb_glib_unicode_compose() local 258 len = g_unichar_to_utf8 (a, utf8); in hb_glib_unicode_compose() 259 len += g_unichar_to_utf8 (b, utf8 + len); in hb_glib_unicode_compose() 260 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFC); in hb_glib_unicode_compose() 290 gchar utf8[6]; in hb_glib_unicode_decompose() local 295 len = g_unichar_to_utf8 (ab, utf8); in hb_glib_unicode_decompose() 296 normalized = g_utf8_normalize (utf8, len, G_NORMALIZE_NFD); in hb_glib_unicode_decompose() 348 gchar utf8[6]; in hb_glib_unicode_decompose_compatibility() local 353 utf8_len = g_unichar_to_utf8 (u, utf8); in hb_glib_unicode_decompose_compatibility() 354 utf8_decomposed = g_utf8_normalize (utf8, utf8_len, G_NORMALIZE_NFKD); in hb_glib_unicode_decompose_compatibility()
|
/external/icu/icu4c/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 49 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) { in UnicodeSetPerformanceTest() 68 utf8=(char *)malloc(utf8Length); in UnicodeSetPerformanceTest() 69 if(utf8!=NULL) { in UnicodeSetPerformanceTest() 71 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 120 char *utf8; member in UnicodeSetPerformanceTest 315 char utf8[4]; in SpanUTF8() local 324 U8_APPEND_UNSAFE(utf8, length, c); in SpanUTF8() 325 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) { in SpanUTF8() 339 const char *s=testcase.utf8; in call() 361 char utf8[4]; in SpanBackUTF8() local [all …]
|
/external/icu/icu4c/source/common/ |
D | ucnv_u8.c | 764 UConverter *utf8; in ucnv_UTF8FromUTF8() local 776 utf8=pToUArgs->converter; in ucnv_UTF8FromUTF8() 783 c=(UChar32)utf8->toUnicodeStatus; in ucnv_UTF8FromUTF8() 785 toULength=oldToULength=utf8->toULength; in ucnv_UTF8FromUTF8() 786 toULimit=(int8_t)utf8->mode; in ucnv_UTF8FromUTF8() 843 utf8->toUnicodeStatus=0; in ucnv_UTF8FromUTF8() 844 utf8->toULength=0; in ucnv_UTF8FromUTF8() 916 utf8->toUBytes[oldToULength++]=*source++; in ucnv_UTF8FromUTF8() 918 utf8->toUnicodeStatus=c; in ucnv_UTF8FromUTF8() 919 utf8->toULength=toULength; in ucnv_UTF8FromUTF8() [all …]
|
D | ucnvlat1.c | 323 UConverter *utf8; in ucnv_Latin1FromUTF8() local 332 utf8=pToUArgs->converter; in ucnv_Latin1FromUTF8() 339 c=(UChar32)utf8->toUnicodeStatus; in ucnv_Latin1FromUTF8() 349 utf8->toUnicodeStatus=0; in ucnv_Latin1FromUTF8() 350 utf8->toULength=0; in ucnv_Latin1FromUTF8() 407 utf8->toUnicodeStatus=utf8->toUBytes[0]=b=*source++; in ucnv_Latin1FromUTF8() 408 utf8->toULength=1; in ucnv_Latin1FromUTF8() 409 utf8->mode=U8_COUNT_TRAIL_BYTES(b)+1; in ucnv_Latin1FromUTF8()
|
/external/libexif/test/nls/ |
D | test-codeset.c | 43 char *utf8; member 83 const char *utf8 = testcases[i].utf8; in check() local 119 utf8 in check() 123 return (my_streq(transl, utf8)); in check()
|
/external/skia/src/sfnt/ |
D | SkOTTable_name.cpp | 33 static void SkStringFromUTF16BE(const uint16_t* utf16be, size_t length, SkString& utf8) { in SkStringFromUTF16BE() argument 36 utf8.reset(); in SkStringFromUTF16BE() 40 utf8.appendUnichar(SkUTF16BE_NextUnichar(&utf16be)); in SkStringFromUTF16BE() 68 static void SkStringFromMacRoman(const uint8_t* macRoman, size_t length, SkString& utf8) { in SkStringFromMacRoman() argument 69 utf8.reset(); in SkStringFromMacRoman() 71 utf8.appendUnichar(macRoman[i] < 0x80 ? macRoman[i] in SkStringFromMacRoman()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/ |
D | Utf8.java | 48 public static int utf8StringLengthInBytes(String utf8) { in utf8StringLengthInBytes() argument 50 if (utf8 != null) { in utf8StringLengthInBytes() 51 return utf8.getBytes("UTF-8").length; in utf8StringLengthInBytes()
|
/external/harfbuzz_ng/util/ |
D | helper-cairo.hh | 52 char *utf8; member 63 if (utf8) in finish() 64 g_free (utf8); in finish()
|
/external/icu/icu4c/source/test/perf/utrie2perf/ |
D | utrie2perf.cpp | 47 utf8(NULL), utf8Length(0), countInputCodePoints(0) { in UTrie2PerfTest() 61 utf8=(char *)malloc(utf8Length); in UTrie2PerfTest() 62 if(utf8!=NULL) { in UTrie2PerfTest() 64 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UTrie2PerfTest() 85 char *utf8; member in UTrie2PerfTest 162 UBool isFCD=unorm_checkFCDUTF8((const uint8_t *)testcase.utf8, testcase.utf8Length, NULL);
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts_cvs/searchcvs/ |
D | mysql-modelingschema.dump | 16 /*!40101 SET NAMES utf8 */; 39 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 68 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 94 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 117 ) ENGINE=MyISAM DEFAULT CHARSET=utf8; 141 ) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 440 uint8_t *utf8, unsigned int maxoutput) in UTF16ToUTF8() argument 447 if (!utf16 || !maxinput || !utf8 || !maxoutput) in UTF16ToUTF8() 484 utf8[s8idx++] = code_point & 0x7F; in UTF16ToUTF8() 487 utf8[s8idx++] = 0xC0 | (code_point >> 6); in UTF16ToUTF8() 488 utf8[s8idx++] = 0x80 | (code_point & 0x3F); in UTF16ToUTF8() 491 utf8[s8idx++] = 0xE0 | (code_point >> 12); in UTF16ToUTF8() 492 utf8[s8idx++] = 0x80 | ((code_point >> 6) & 0x3F); in UTF16ToUTF8() 493 utf8[s8idx++] = 0x80 | (code_point & 0x3F); in UTF16ToUTF8() 496 utf8[s8idx++] = 0xF0 | (code_point >> 18); in UTF16ToUTF8() 497 utf8[s8idx++] = 0x80 | ((code_point >> 12) & 0x3F); in UTF16ToUTF8() [all …]
|
/external/harfbuzz_ng/test/api/ |
D | test-buffer.c | 32 static const char utf8[10] = "ab\360\240\200\200defg"; variable 86 hb_buffer_add_utf8 (b, utf8, G_N_ELEMENTS (utf8), 1, G_N_ELEMENTS (utf8) - 2); in fixture_init() 366 const char utf8[8]; member 393 escaped = g_strescape (test->utf8, NULL); in test_buffer_utf8_conversion() 397 bytes = strlen (test->utf8); in test_buffer_utf8_conversion() 402 hb_buffer_add_utf8 (b, test->utf8, bytes, 1, bytes - 2); in test_buffer_utf8_conversion() 419 const char *utf8; member 682 escaped = g_strescape (test->utf8, NULL); in test_buffer_utf8_validity() 686 text_bytes = strlen (test->utf8); in test_buffer_utf8_validity() 693 hb_buffer_add_utf8 (b, test->utf8, text_bytes, 0, segment_bytes); in test_buffer_utf8_validity()
|
/external/pcre/dist/ |
D | perltest.pl | 18 if ($utf8) 96 $utf8 = $pattern =~ s/8(?=[a-zA-Z]*$)//; 233 $xx = Encode::decode_utf8($xx) if $utf8;
|
/external/hyphenation-patterns/Ethi/ |
D | hyph-und-ethi.lic.txt | 6 % Arthur Reutenauer, London, 2011, for the hyph-utf8 project. 12 % (svn://tug.org/texhyphen/trunk/hyph-utf8/source/generic/hyph-utf8/languages/mul-ethi/generate_pat…
|
/external/expat/lib/ |
D | xmltok.c | 1252 char utf8[256][4]; member 1299 const char *utf8; in unknown_toUtf8() local 1303 utf8 = uenc->utf8[(unsigned char)**fromP]; in unknown_toUtf8() 1304 n = *utf8++; in unknown_toUtf8() 1310 utf8 = buf; in unknown_toUtf8() 1320 *(*toP)++ = *utf8++; in unknown_toUtf8() 1366 e->utf8[i][0] = 1; in XmlInitUnknownEncoding() 1367 e->utf8[i][1] = 0; in XmlInitUnknownEncoding() 1373 e->utf8[i][0] = 0; in XmlInitUnknownEncoding() 1382 e->utf8[i][0] = 1; in XmlInitUnknownEncoding() [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | ByteString.java | 54 transient String utf8; // Lazily computed. field in ByteString 85 byteString.utf8 = s; in encodeUtf8() 90 public String utf8() { in utf8() method in ByteString 91 String result = utf8; in utf8() 93 return result != null ? result : (utf8 = new String(data, Util.UTF_8)); in utf8()
|
/external/llvm/lib/Support/Windows/ |
D | Path.inc | 796 std::error_code UTF8ToUTF16(llvm::StringRef utf8, 798 if (!utf8.empty()) { 799 int len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(), 800 utf8.size(), utf16.begin(), 0); 808 len = ::MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, utf8.begin(), 809 utf8.size(), utf16.begin(), utf16.size()); 825 llvm::SmallVectorImpl<char> &utf8) { 828 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.begin(), 834 utf8.reserve(len); 835 utf8.set_size(len); [all …]
|
D | WindowsSupport.h | 175 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16); 177 SmallVectorImpl<char> &utf8); 180 SmallVectorImpl<char> &utf8);
|