/external/flac/src/plugin_common/ |
D | tags.c | 52 static size_t local__utf8len(const FLAC__byte *utf8) in local__utf8len() argument 54 FLAC__ASSERT(0 != utf8); in local__utf8len() 55 if ((utf8[0] & 0x80) == 0) { in local__utf8len() 58 else if ((utf8[0] & 0xE0) == 0xC0 && (utf8[1] & 0xC0) == 0x80) { in local__utf8len() 59 if ((utf8[0] & 0xFE) == 0xC0) /* overlong sequence check */ in local__utf8len() 63 else if ((utf8[0] & 0xF0) == 0xE0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80) { in local__utf8len() 64 if (utf8[0] == 0xE0 && (utf8[1] & 0xE0) == 0x80) /* overlong sequence check */ in local__utf8len() 67 if (utf8[0] == 0xED && (utf8[1] & 0xE0) == 0xA0) /* D800-DFFF */ in local__utf8len() 69 if (utf8[0] == 0xEF && utf8[1] == 0xBF && (utf8[2] & 0xFE) == 0xBE) /* FFFE-FFFF */ in local__utf8len() 73 …else if ((utf8[0] & 0xF8) == 0xF0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80 && (utf8… in local__utf8len() [all …]
|
/external/rust/crates/bstr/src/ |
D | utf8.rs | 863 use utf8::{self, Utf8Error}; 882 assert_eq!(Ok(()), utf8::validate(s.as_bytes())); in validate_all_codepoints() 888 assert_eq!(Ok(()), utf8::validate(b"abc")); in validate_multiple_codepoints() 889 assert_eq!(Ok(()), utf8::validate(b"a\xE2\x98\x83a")); in validate_multiple_codepoints() 890 assert_eq!(Ok(()), utf8::validate(b"a\xF0\x9D\x9C\xB7a")); in validate_multiple_codepoints() 891 assert_eq!(Ok(()), utf8::validate(b"\xE2\x98\x83\xF0\x9D\x9C\xB7",)); in validate_multiple_codepoints() 894 utf8::validate(b"a\xE2\x98\x83a\xF0\x9D\x9C\xB7a",) in validate_multiple_codepoints() 898 utf8::validate(b"\xEF\xBF\xBD\xE2\x98\x83\xEF\xBF\xBD",) in validate_multiple_codepoints() 905 assert_eq!(Err(utf8e2(0, 1)), utf8::validate(b"\xFF")); in validate_errors() 907 assert_eq!(Err(utf8e2(1, 1)), utf8::validate(b"a\xFF")); in validate_errors() [all …]
|
/external/turbine/java/com/google/turbine/bytecode/ |
D | ConstantPool.java | 97 int utf8 = utf8(value); in classInfo() local 98 if (classInfoPool.containsKey(utf8)) { in classInfo() 99 return classInfoPool.get(utf8); in classInfo() 101 int index = insert(new Entry(Kind.CLASS_INFO, new IntValue(utf8))); in classInfo() 102 classInfoPool.put(utf8, index); in classInfo() 107 int utf8(String value) { in utf8() method in ConstantPool 155 int utf8 = utf8(value); in string() local 156 if (stringPool.containsKey(utf8)) { in string() 157 return stringPool.get(utf8); in string() 159 int index = insert(new Entry(Kind.STRING, new IntValue(utf8))); in string() [all …]
|
D | AttributeWriter.java | 94 output.writeShort(pool.utf8(attribute.kind().signature())); in writeInnerClasses() 100 output.writeShort(pool.utf8(inner.innerName())); in writeInnerClasses() 106 output.writeShort(pool.utf8(attribute.kind().signature())); in writeExceptionsAttribute() 115 output.writeShort(pool.utf8(attribute.kind().signature())); in writeSignatureAttribute() 117 output.writeShort(pool.utf8(attribute.signature)); in writeSignatureAttribute() 121 output.writeShort(pool.utf8(attribute.kind().signature())); in writeConstantValue() 152 output.writeShort(pool.utf8(attribute.kind().signature())); in writeAnnotation() 164 output.writeShort(pool.utf8(attribute.kind().signature())); in writeAnnotationDefault() 173 output.writeShort(pool.utf8(attribute.kind().signature())); in writeParameterAnnotations() 188 output.writeShort(pool.utf8(attribute.kind().signature())); in writeDeprecated() [all …]
|
/external/flac/src/libFLAC/ |
D | format.c | 312 static uint32_t 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/skia/modules/skshaper/src/ |
D | SkUnicode_icu.cpp | 91 …static std::unique_ptr<SkBidiIterator> makeBidiIterator(const char utf8[], int utf8Units, Directio… in makeBidiIterator() argument 99 int utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Units); in makeBidiIterator() 105 SkDEBUGCODE(int dstLen =) SkUTF::UTF8ToUTF16(utf16.get(), utf16Units, utf8, utf8Units); in makeBidiIterator() 113 static std::vector<Region> getBidiRegions(const char utf8[], int utf8Units, Direction dir) { in getBidiRegions() argument 115 auto bidiIterator = makeBidiIterator(utf8, utf8Units, dir); in getBidiRegions() 117 const char* start8 = utf8; in getBidiRegions() 118 const char* end8 = utf8 + utf8Units; in getBidiRegions() 129 auto end = start8 - utf8; in getBidiRegions() 137 auto end = start8 - utf8; in getBidiRegions() 244 static bool extractBidi(const char utf8[], in extractBidi() argument [all …]
|
D | SkShaper_primitive.cpp | 19 void shape(const char* utf8, size_t utf8Bytes, 25 void shape(const char* utf8, size_t utf8Bytes, 33 void shape(const char* utf8, size_t utf8Bytes, 125 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument 146 return this->shape(utf8, utf8Bytes, skfont, skbidi, width, handler); in shape() 149 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument 160 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape() 164 void SkShaperPrimitive::shape(const char* utf8, size_t utf8Bytes, in shape() argument 171 int glyphCount = font.countText(utf8, utf8Bytes, SkTextEncoding::kUTF8); in shape() 177 font.textToGlyphs(utf8, utf8Bytes, SkTextEncoding::kUTF8, glyphs.get(), glyphCount); in shape() [all …]
|
D | SkUnicode.h | 114 virtual bool isControl(SkUnichar utf8) = 0; 115 virtual bool isWhitespace(SkUnichar utf8) = 0; 116 virtual bool isSpace(SkUnichar utf8) = 0; 130 … (const char utf8[], int utf8Units, TextDirection dir, std::vector<BidiRegion>* results) = 0; 132 (const char utf8[], int utf8Units, std::vector<LineBreakBefore>* results) = 0; 134 (const char utf8[], int utf8Units, std::vector<Position>* results) = 0; 136 (const char utf8[], int utf8Units, std::vector<Position>* results) = 0; 139 void forEachCodepoint(const char* utf8, int32_t utf8Units, Callback&& callback) { in forEachCodepoint() argument 140 const char* current = utf8; in forEachCodepoint() 141 const char* end = utf8 + utf8Units; in forEachCodepoint() [all …]
|
D | SkShaper_coretext.cpp | 34 void shape(const char* utf8, size_t utf8Bytes, 40 void shape(const char* utf8, size_t utf8Bytes, 48 void shape(const char* utf8, size_t utf8Bytes, 62 void SkShaper_CoreText::shape(const char* utf8, size_t utf8Bytes, in shape() argument 83 return this->shape(utf8, utf8Bytes, skfont, skbidi, width, handler); in shape() 86 void SkShaper_CoreText::shape(const char* utf8, size_t utf8Bytes, in shape() argument 97 return this->shape(utf8, utf8Bytes, font.currentFont(), (bidi.currentLevel() % 2) == 0, in shape() 155 bool setUTF8(const char* utf8, size_t size) { in setUTF8() argument 156 SkASSERT(utf8 != nullptr); in setUTF8() 163 auto utf16Size = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, size); in setUTF8() [all …]
|
D | SkShaper.cpp | 46 SkShaper::MakeBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel) { in MakeBiDiRunIterator() argument 54 utf8, in MakeBiDiRunIterator() 65 SkShaper::MakeScriptRunIterator(const char* utf8, size_t utf8Bytes, SkFourByteTag scriptTag) { in MakeScriptRunIterator() argument 72 SkShaper::MakeSkUnicodeHbScriptRunIterator(unicode.get(), utf8, utf8Bytes); in MakeScriptRunIterator() 91 FontMgrRunIterator(const char* utf8, size_t utf8Bytes, in FontMgrRunIterator() argument 95 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in FontMgrRunIterator() 107 FontMgrRunIterator(const char* utf8, size_t utf8Bytes, in FontMgrRunIterator() argument 109 : FontMgrRunIterator(utf8, utf8Bytes, font, std::move(fallbackMgr), in FontMgrRunIterator() 185 SkShaper::MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes, in MakeFontMgrRunIterator() argument 188 return std::make_unique<FontMgrRunIterator>(utf8, utf8Bytes, font, std::move(fallback)); in MakeFontMgrRunIterator() [all …]
|
D | SkShaper_harfbuzz.cpp | 338 SkUnicodeBidiRunIterator(const char* utf8, const char* end, SkUnicodeBidi bidi) in SkUnicodeBidiRunIterator() argument 340 , fEndOfCurrentRun(utf8) in SkUnicodeBidiRunIterator() 341 , fBegin(utf8) in SkUnicodeBidiRunIterator() 384 SkUnicodeHbScriptRunIterator(SkUnicodeScript script, const char* utf8, size_t utf8Bytes) in SkUnicodeHbScriptRunIterator() argument 386 , fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in SkUnicodeHbScriptRunIterator() 655 ShapedRun shape(const char* utf8, size_t utf8Bytes, 668 void shape(const char* utf8, size_t utf8Bytes, 691 virtual void wrap(char const * const utf8, size_t utf8Bytes, 706 void wrap(char const * const utf8, size_t utf8Bytes, 721 void wrap(char const * const utf8, size_t utf8Bytes, [all …]
|
/external/flac/src/share/ |
D | Makefile.am | 46 utf8/CMakeLists.txt \ 47 utf8/Makefile.lite \ 48 utf8/charmaps.h \ 49 utf8/makemap.c \ 50 utf8/charset_test.c \ 51 utf8/utf8_static.vcproj \ 52 utf8/utf8_static.vcxproj \ 53 utf8/utf8_static.vcxproj.filters \ 63 utf8/libutf8.la \ 90 utf8/charset.c \ [all …]
|
/external/skia/src/utils/ |
D | SkUTF.cpp | 48 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument 49 if (!utf8) { in CountUTF8() 53 const char* stop = utf8 + byteLength; in CountUTF8() 54 while (utf8 < stop) { in CountUTF8() 55 int type = utf8_byte_type(*(const uint8_t*)utf8); in CountUTF8() 56 if (!utf8_type_is_valid_leading_byte(type) || utf8 + type > stop) { in CountUTF8() 60 ++utf8; in CountUTF8() 61 if (!utf8_byte_is_continuation(*(const uint8_t*)utf8)) { in CountUTF8() 65 ++utf8; in CountUTF8() 210 size_t SkUTF::ToUTF8(SkUnichar uni, char utf8[SkUTF::kMaxBytesInUTF8Sequence]) { in ToUTF8() [all …]
|
D | SkShaperJSONWriter.cpp | 17 SkShaperJSONWriter::SkShaperJSONWriter(SkJSONWriter* JSONWriter, const char* utf8, size_t size) in SkShaperJSONWriter() argument 19 , fUTF8{utf8, size} {} 35 static bool is_one_to_one(const char utf8[], size_t utf8Begin, size_t utf8End, in is_one_to_one() argument 44 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one() 86 std::string utf8{&fUTF8[info.utf8Range.begin()], info.utf8Range.size()}; in commitRunBuffer() local 87 fJSONWriter->appendString("UTF8", utf8.c_str()); in commitRunBuffer() 168 void SkShaperJSONWriter::VisualizeClusters(const char* utf8, size_t utf8Begin, size_t utf8End, in VisualizeClusters() argument 186 SkSpan<const char> utf8Span{&utf8[utf8RangeStart], utf8RangeEnd - utf8RangeStart}; in VisualizeClusters() 197 int possibleCount = SkUTF::CountUTF8(&utf8[utf8StartIndex], utf8EndIndex - utf8StartIndex); in VisualizeClusters() 208 SkSpan<const char> utf8Span{&utf8[utf8StartIndex], utf8EndIndex - utf8StartIndex}; in VisualizeClusters() [all …]
|
/external/skqp/src/utils/ |
D | SkUTF.cpp | 47 int SkUTF::CountUTF8(const char* utf8, size_t byteLength) { in CountUTF8() argument 48 if (!utf8) { in CountUTF8() 52 const char* stop = utf8 + byteLength; in CountUTF8() 53 while (utf8 < stop) { in CountUTF8() 54 int type = utf8_byte_type(*(const uint8_t*)utf8); in CountUTF8() 55 if (!utf8_type_is_valid_leading_byte(type) || utf8 + type > stop) { in CountUTF8() 59 ++utf8; in CountUTF8() 60 if (!utf8_byte_is_continuation(*(const uint8_t*)utf8)) { in CountUTF8() 64 ++utf8; in CountUTF8() 209 size_t SkUTF::ToUTF8(SkUnichar uni, char utf8[SkUTF::kMaxBytesInUTF8Sequence]) { in ToUTF8() [all …]
|
/external/libchrome/base/strings/ |
D | old_utf_string_conversions.cc | 114 std::wstring UTF8ToWide(StringPiece utf8) { in UTF8ToWide() argument 115 if (IsStringASCII(utf8)) { in UTF8ToWide() 116 return std::wstring(utf8.begin(), utf8.end()); in UTF8ToWide() 120 PrepareForUTF16Or32Output(utf8.data(), utf8.length(), &ret); in UTF8ToWide() 121 ConvertUnicode(utf8.data(), utf8.length(), &ret); in UTF8ToWide() 194 string16 UTF8ToUTF16(StringPiece utf8) { in UTF8ToUTF16() argument 195 if (IsStringASCII(utf8)) { in UTF8ToUTF16() 196 return string16(utf8.begin(), utf8.end()); in UTF8ToUTF16() 200 PrepareForUTF16Or32Output(utf8.data(), utf8.length(), &ret); in UTF8ToUTF16() 203 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()
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | BufferCommonTest.kt | 30 assertEquals("party", target.readByteString().utf8()) in copyToBuffer() 31 assertEquals("party", source.readByteString().utf8()) in copyToBuffer() 40 assertEquals("rty", target.readByteString().utf8()) in copyToBufferWithOffset() 41 assertEquals("party", source.readByteString().utf8()) in copyToBufferWithOffset() 50 assertEquals("par", target.readByteString().utf8()) in copyToBufferWithByteCount() 51 assertEquals("party", source.readByteString().utf8()) in copyToBufferWithByteCount() 60 assertEquals("art", target.readByteString().utf8()) in copyToBufferWithOffsetAndByteCount() 61 assertEquals("party", source.readByteString().utf8()) in copyToBufferWithOffsetAndByteCount()
|
/external/skia/docs/examples/ |
D | Paint_textToGlyphs.cpp | 9 const uint8_t utf8[] = { 0x24, 0xC2, 0xA2, 0xE2, 0x82, 0xAC, 0xC2, 0xA5, 0xC2, 0xA3 }; 11 int count = paint.textToGlyphs(utf8, sizeof(utf8), nullptr); 13 (void) paint.textToGlyphs(utf8, sizeof(utf8), &glyphs.front());
|
/external/ImageMagick/MagickCore/ |
D | token-private.h | 70 *utf8; in ConvertLatin1ToUTF8() local 75 utf8=(unsigned char *) NULL; in ConvertLatin1ToUTF8() 77 utf8=(unsigned char *) AcquireQuantumMemory(length+1UL,sizeof(*utf8)); in ConvertLatin1ToUTF8() 78 if (utf8 == (unsigned char *) NULL) in ConvertLatin1ToUTF8() 80 q=utf8; in ConvertLatin1ToUTF8() 93 return(utf8); in ConvertLatin1ToUTF8()
|
D | xml-tree.c | 317 *utf8; in CanonicalXMLContent() local 319 utf8=ConvertLatin1ToUTF8((const unsigned char *) content); in CanonicalXMLContent() 320 if (utf8 == (unsigned char *) NULL) in CanonicalXMLContent() 322 for (p=utf8; *p != '\0'; p++) in CanonicalXMLContent() 330 base64=Base64Encode(utf8,strlen((char *) utf8),&length); in CanonicalXMLContent() 331 utf8=(unsigned char *) RelinquishMagickMemory(utf8); in CanonicalXMLContent() 346 for (p=utf8; *p != '\0'; p++) in CanonicalXMLContent() 411 utf8=(unsigned char *) RelinquishMagickMemory(utf8); in CanonicalXMLContent() 1292 *utf8; in ConvertUTF16ToUTF8() local 1309 utf8=(char *) AcquireQuantumMemory(*length+1,sizeof(*utf8)); in ConvertUTF16ToUTF8() [all …]
|
/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/autotest/database/ |
D | schema_129.sql | 165 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 184 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 199 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 277 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 362 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 461 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 504 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 523 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 545 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 560 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; [all …]
|
/external/skia/modules/skshaper/include/ |
D | SkShaper.h | 115 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes, 118 MakeFontMgrRunIterator(const char* utf8, size_t utf8Bytes, 132 MakeBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel); 135 …MakeSkUnicodeBidiRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes, uint8_t bidiL… 137 MakeIcuBiDiRunIterator(const char* utf8, size_t utf8Bytes, uint8_t bidiLevel); 149 MakeScriptRunIterator(const char* utf8, size_t utf8Bytes, SkFourByteTag script); 152 MakeSkUnicodeHbScriptRunIterator(SkUnicode* unicode, const char* utf8, size_t utf8Bytes); 154 MakeHbIcuScriptRunIterator(const char* utf8, size_t utf8Bytes); 166 MakeStdLanguageRunIterator(const char* utf8, size_t utf8Bytes); 226 virtual void shape(const char* utf8, size_t utf8Bytes, [all …]
|
/external/ImageMagick/utilities/ |
D | magick.c | 186 **utf8; in wmain() local 194 utf8=NTArgvToUTF8(argc,argv); in wmain() 195 status=MagickMain(argc,utf8); in wmain() 197 utf8[i]=DestroyString(utf8[i]); in wmain() 198 utf8=(char **) RelinquishMagickMemory(utf8); in wmain()
|