/external/skia/src/core/ |
D | SkUtils.cpp | 37 int SkUTF8_CountUnichars(const char utf8[]) { in SkUTF8_CountUnichars() argument 38 SkASSERT(utf8); in SkUTF8_CountUnichars() 43 int c = *(const uint8_t*)utf8; in SkUTF8_CountUnichars() 47 utf8 += SkUTF8_LeadByteToCount(c); in SkUTF8_CountUnichars() 53 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { in SkUTF8_CountUnichars() argument 54 SkASSERT(utf8 || 0 == byteLength); in SkUTF8_CountUnichars() 57 const char* stop = utf8 + byteLength; in SkUTF8_CountUnichars() 59 while (utf8 < stop) { in SkUTF8_CountUnichars() 60 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUnichars() 66 SkUnichar SkUTF8_ToUnichar(const char utf8[]) { in SkUTF8_ToUnichar() argument [all …]
|
D | SkUtils.h | 45 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) { in SkUTF8_CountUTF8Bytes() argument 46 SkASSERT(utf8); in SkUTF8_CountUTF8Bytes() 47 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUTF8Bytes() 50 int SkUTF8_CountUnichars(const char utf8[]); 51 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength); 52 SkUnichar SkUTF8_ToUnichar(const char utf8[]); 60 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL); 76 char utf8[] = NULL);
|
/external/flac/libFLAC/ |
D | format.c | 312 static unsigned utf8len_(const FLAC__byte *utf8) in utf8len_() argument 314 FLAC__ASSERT(0 != utf8); in utf8len_() 315 if ((utf8[0] & 0x80) == 0) { in utf8len_() 318 else if ((utf8[0] & 0xE0) == 0xC0 && (utf8[1] & 0xC0) == 0x80) { in utf8len_() 319 if ((utf8[0] & 0xFE) == 0xC0) /* overlong sequence check */ in utf8len_() 323 else if ((utf8[0] & 0xF0) == 0xE0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80) { in utf8len_() 324 if (utf8[0] == 0xE0 && (utf8[1] & 0xE0) == 0x80) /* overlong sequence check */ in utf8len_() 327 if (utf8[0] == 0xED && (utf8[1] & 0xE0) == 0xA0) /* D800-DFFF */ in utf8len_() 329 if (utf8[0] == 0xEF && utf8[1] == 0xBF && (utf8[2] & 0xFE) == 0xBE) /* FFFE-FFFF */ in utf8len_() 333 …else if ((utf8[0] & 0xF8) == 0xF0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80 && (utf8… in utf8len_() [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/libchrome/base/strings/ |
D | utf_string_conversions.cc | 79 std::wstring UTF8ToWide(StringPiece utf8) { in UTF8ToWide() argument 80 if (IsStringASCII(utf8)) { in UTF8ToWide() 81 return std::wstring(utf8.begin(), utf8.end()); in UTF8ToWide() 85 PrepareForUTF16Or32Output(utf8.data(), utf8.length(), &ret); in UTF8ToWide() 86 ConvertUnicode(utf8.data(), utf8.length(), &ret); in UTF8ToWide() 159 string16 UTF8ToUTF16(StringPiece utf8) { in UTF8ToUTF16() argument 160 if (IsStringASCII(utf8)) { in UTF8ToUTF16() 161 return string16(utf8.begin(), utf8.end()); in UTF8ToUTF16() 165 PrepareForUTF16Or32Output(utf8.data(), utf8.length(), &ret); in UTF8ToUTF16() 168 ConvertUnicode(utf8.data(), utf8.length(), &ret); in UTF8ToUTF16() [all …]
|
D | utf_string_conversions_unittest.cc | 53 std::ostringstream utf8; in TEST() local 54 utf8 << WideToUTF8(kConvertRoundtripCases[i]); in TEST() 56 wide << UTF8ToWide(utf8.str()); in TEST() 73 const char* utf8; in TEST() member 103 UTF8ToWide(convert_cases[i].utf8, in TEST() 104 strlen(convert_cases[i].utf8), in TEST() 129 const char* utf8; in TEST() member 149 std::string expected(test.utf8); in TEST() 159 const char* utf8; in TEST() member 180 std::string expected(test.utf8); in TEST()
|
D | sys_string_conversions.h | 35 BASE_EXPORT std::wstring SysUTF8ToWide(const StringPiece& utf8); 65 BASE_EXPORT CFStringRef SysUTF8ToCFStringRef(const std::string& utf8); 69 BASE_EXPORT NSString* SysUTF8ToNSString(const std::string& utf8);
|
/external/autotest/database/ |
D | schema_051.sql | 24 SET character_set_client = utf8; 42 SET character_set_client = utf8; 57 SET character_set_client = utf8; 74 SET character_set_client = utf8; 91 SET character_set_client = utf8; 109 SET character_set_client = utf8; 134 SET character_set_client = utf8; 153 SET character_set_client = utf8; 172 SET character_set_client = utf8; 204 SET character_set_client = utf8; [all …]
|
/external/pdfium/xfa/src/fxbarcode/ |
D | BC_UtilCodingConvert.cpp | 23 CFX_ByteString utf8 = unicode.UTF8Encode(); in LocaleToUtf8() local 24 for (int32_t i = 0; i < utf8.GetLength(); i++) { in LocaleToUtf8() 25 dst.Add(utf8[i]); in LocaleToUtf8() 30 CFX_ByteString utf8; in Utf8ToLocale() local 32 utf8 += src[i]; in Utf8ToLocale() 34 CFX_WideString unicode = CFX_WideString::FromUTF8(utf8, utf8.GetLength()); in Utf8ToLocale()
|
/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/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/okhttp/okio/okio/src/test/java/okio/ |
D | ByteStringTest.java | 42 assertEquals("llo, Worl", byteString.utf8()); in ofCopyRange() 72 @Test public void utf8() throws Exception { in utf8() method in ByteStringTest 76 assertEquals(byteString.utf8(), bronzeHorseman); in utf8() 197 assertEquals("", ByteString.decodeBase64("====").utf8()); in ignoreUnnecessaryPadding() 198 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AAAA====").utf8()); in ignoreUnnecessaryPadding() 202 assertEquals("", ByteString.decodeBase64("").utf8()); in decodeBase64() 214 + "N1cCBpbiB0aGUgcG93ZXIuLi4=").utf8()); in decodeBase64() 220 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64(" AA AA ").utf8()); in decodeBase64WithWhitespace() 221 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64(" AA A\r\nA ").utf8()); in decodeBase64WithWhitespace() 222 assertEquals("\u0000\u0000\u0000", ByteString.decodeBase64("AA AA").utf8()); in decodeBase64WithWhitespace() [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 …]
|
/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/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/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/harfbuzz_ng/util/ |
D | helper-cairo.hh | 56 char *utf8; member 67 if (utf8) in finish() 68 g_free (utf8); in finish()
|
/external/webrtc/webrtc/base/ |
D | win32.h | 49 inline std::wstring ToUtf16(const char* utf8, size_t len) { in ToUtf16() argument 50 int len16 = ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), in ToUtf16() 53 ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), ws, len16); in ToUtf16() 85 bool Utf8ToWindowsFilename(const std::string& utf8, std::wstring* filename);
|
/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/vulkan-validation-layers/layers/ |
D | vk_layer_utils.cpp | 580 VkStringErrorFlags vk_string_validate(const int max_length, const char *utf8) { in vk_string_validate() argument 586 if (utf8[i] == 0) { in vk_string_validate() 588 } else if ((utf8[i] >= 0x20) && (utf8[i] < 0x7f)) { in vk_string_validate() 590 } else if ((utf8[i] & UTF8_ONE_BYTE_MASK) == UTF8_ONE_BYTE_CODE) { in vk_string_validate() 592 } else if ((utf8[i] & UTF8_TWO_BYTE_MASK) == UTF8_TWO_BYTE_CODE) { in vk_string_validate() 594 } else if ((utf8[i] & UTF8_THREE_BYTE_MASK) == UTF8_THREE_BYTE_CODE) { in vk_string_validate() 606 if ((utf8[i] & UTF8_DATA_BYTE_MASK) != UTF8_DATA_BYTE_CODE) { in vk_string_validate()
|
/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/webrtc/webrtc/system_wrappers/include/ |
D | utf_util_win.h | 24 inline std::wstring ToUtf16(const char* utf8, size_t len) { in ToUtf16() argument 25 int len16 = ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), in ToUtf16() 28 ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), ws.get(), in ToUtf16()
|