Home
last modified time | relevance | path

Searched refs:utf8 (Results 1 – 25 of 354) sorted by relevance

12345678910>>...15

/external/flac/libFLAC/
Dformat.c312 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/turbine/java/com/google/turbine/bytecode/
DConstantPool.java98 int utf8 = utf8(value); in classInfo() local
99 if (classInfoPool.containsKey(utf8)) { in classInfo()
100 return classInfoPool.get(utf8); in classInfo()
102 int index = insert(new Entry(Kind.CLASS_INFO, new IntValue(utf8))); in classInfo()
103 classInfoPool.put(utf8, index); in classInfo()
108 int utf8(String value) { in utf8() method in ConstantPool
156 int utf8 = utf8(value); in string() local
157 if (stringPool.containsKey(utf8)) { in string()
158 return stringPool.get(utf8); in string()
160 int index = insert(new Entry(Kind.STRING, new IntValue(utf8))); in string()
[all …]
DAttributeWriter.java96 output.writeShort(pool.utf8(attribute.kind().signature())); in writeInnerClasses()
102 output.writeShort(pool.utf8(inner.innerName())); in writeInnerClasses()
108 output.writeShort(pool.utf8(attribute.kind().signature())); in writeExceptionsAttribute()
117 output.writeShort(pool.utf8(attribute.kind().signature())); in writeSignatureAttribute()
119 output.writeShort(pool.utf8(attribute.signature)); in writeSignatureAttribute()
123 output.writeShort(pool.utf8(attribute.kind().signature())); in writeConstantValue()
154 output.writeShort(pool.utf8(attribute.kind().signature())); in writeAnnotation()
166 output.writeShort(pool.utf8(attribute.kind().signature())); in writeAnnotationDefault()
175 output.writeShort(pool.utf8(attribute.kind().signature())); in writeParameterAnnotations()
190 output.writeShort(pool.utf8(attribute.kind().signature())); in writeDeprecated()
[all …]
DClassReader.java109 String name = constantPool.utf8(attributeNameIndex); in read()
148 signature = constantPool.utf8(reader.u2()); in readSignature()
165 String innerName = innerNameIndex != 0 ? constantPool.utf8(innerNameIndex) : null; in readInnerClasses()
213 String name = constantPool.utf8(reader.u2()); in readMethodParameters()
225 String version = (versionIndex != 0) ? constantPool.utf8(versionIndex) : null; in readModule()
234 (requiresVersionIndex != 0) ? constantPool.utf8(requiresVersionIndex) : null; in readModule()
303 String annotationType = constantPool.utf8(typeIndex); in readAnnotation()
308 String key = constantPool.utf8(elementNameIndex); in readAnnotation()
340 String typeName = constantPool.utf8(typeNameIndex); in readElementValue()
341 String constName = constantPool.utf8(constNameIndex); in readElementValue()
[all …]
/external/skqp/src/utils/
DSkUTF.cpp47 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/skia/src/utils/
DSkUTF.cpp47 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/
Dold_utf_string_conversions.cc114 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 …]
Dutf_string_conversions_unittest.cc53 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/ImageMagick/MagickCore/
Dxml-tree.c318 *utf8; in CanonicalXMLContent() local
320 utf8=ConvertLatin1ToUTF8((const unsigned char *) content); in CanonicalXMLContent()
321 if (utf8 == (unsigned char *) NULL) in CanonicalXMLContent()
323 for (p=utf8; *p != '\0'; p++) in CanonicalXMLContent()
331 base64=Base64Encode(utf8,strlen((char *) utf8),&length); in CanonicalXMLContent()
332 utf8=(unsigned char *) RelinquishMagickMemory(utf8); in CanonicalXMLContent()
347 for (p=utf8; *p != '\0'; p++) in CanonicalXMLContent()
412 utf8=(unsigned char *) RelinquishMagickMemory(utf8); in CanonicalXMLContent()
1293 *utf8; in ConvertUTF16ToUTF8() local
1310 utf8=(char *) AcquireQuantumMemory(*length+1,sizeof(*utf8)); in ConvertUTF16ToUTF8()
[all …]
Dtoken-private.h69 *utf8; in ConvertLatin1ToUTF8() local
74 utf8=(unsigned char *) NULL; in ConvertLatin1ToUTF8()
76 utf8=(unsigned char *) AcquireQuantumMemory(length+1UL,sizeof(*utf8)); in ConvertLatin1ToUTF8()
77 if (utf8 == (unsigned char *) NULL) in ConvertLatin1ToUTF8()
79 q=utf8; in ConvertLatin1ToUTF8()
92 return(utf8); in ConvertLatin1ToUTF8()
/external/autotest/database/
Dschema_129.sql165 ) 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/src/
DSkShaper_harfbuzz.cpp342 static SkTLazy<BiDiRunIterator> Make(const char* utf8, size_t utf8Bytes, UBiDiLevel level) { in Make() argument
356 u_strFromUTF8(nullptr, 0, &utf16Units, utf8, utf8Bytes, &status); in Make()
359 u_strFromUTF8(utf16.get(), utf16Units, nullptr, utf8, utf8Bytes, &status); in Make()
380 ret.init(utf8, utf8 + utf8Bytes, std::move(bidi)); in Make()
383 BiDiRunIterator(const char* utf8, const char* end, ICUBiDi bidi) in BiDiRunIterator() argument
385 , fEndOfCurrentRun(utf8) in BiDiRunIterator()
426 static SkTLazy<ScriptRunIterator> Make(const char* utf8, size_t utf8Bytes, in Make() argument
430 ret.init(utf8, utf8Bytes, hbUnicode); in Make()
433 ScriptRunIterator(const char* utf8, size_t utf8Bytes, hb_unicode_funcs_t* hbUnicode) in ScriptRunIterator() argument
434 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in ScriptRunIterator()
[all …]
DSkShaper.cpp28 SkSpan<const char> utf8) { in newRunBuffer() argument
30 utf8.size(), SkString()); in newRunBuffer()
32 memcpy(runBuffer.utf8text, utf8.data(), utf8.size()); in newRunBuffer()
36 fClusterOffset = utf8.data() - fUtf8Text; in newRunBuffer()
/external/pdfium/fxbarcode/
DBC_UtilCodingConvert.cpp27 ByteString utf8 = unicode.UTF8Encode(); in LocaleToUtf8() local
28 dst = std::vector<uint8_t>(utf8.begin(), utf8.end()); in LocaleToUtf8()
33 ByteString utf8; in Utf8ToLocale() local
35 utf8 += value; in Utf8ToLocale()
37 WideString unicode = WideString::FromUTF8(utf8.AsStringView()); in Utf8ToLocale()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DLatin1Converter.java107 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/
Dgptpart.cc84 string utf8 ; in GetDescription() local
116 utf8 += (char) uni ; in GetDescription()
119 utf8 += (char) ( 0xc0 | ( uni >> 6 ) ) ; in GetDescription()
120 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
123 utf8 += (char) ( 0xe0 | ( uni >> 12 ) ) ; in GetDescription()
124 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription()
125 utf8 += (char) ( 0x80 | ( uni & 0x3f ) ) ; in GetDescription()
128 utf8 += (char) ( 0xf0 | ( uni >> 18 ) ) ; in GetDescription()
129 utf8 += (char) ( 0xe0 | ( ( uni >> 12 ) & 0x3f ) ) ; in GetDescription()
130 utf8 += (char) ( 0x80 | ( ( uni >> 6 ) & 0x3f ) ) ; in GetDescription()
[all …]
/external/ImageMagick/utilities/
Dmagick.c186 **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()
/external/skqp/modules/skshaper/src/
DSkShaper_harfbuzz.cpp134 static SkTLazy<BiDiRunIterator> Make(const char* utf8, size_t utf8Bytes, UBiDiLevel level) { in Make() argument
148 u_strFromUTF8(nullptr, 0, &utf16Units, utf8, utf8Bytes, &status); in Make()
151 u_strFromUTF8(utf16.get(), utf16Units, nullptr, utf8, utf8Bytes, &status); in Make()
172 ret.init(utf8, utf8 + utf8Bytes, std::move(bidi)); in Make()
175 BiDiRunIterator(const char* utf8, const char* end, ICUBiDi bidi) in BiDiRunIterator() argument
177 , fEndOfCurrentRun(utf8) in BiDiRunIterator()
218 static SkTLazy<ScriptRunIterator> Make(const char* utf8, size_t utf8Bytes, in Make() argument
222 ret.init(utf8, utf8Bytes, hbUnicode); in Make()
225 ScriptRunIterator(const char* utf8, size_t utf8Bytes, hb_unicode_funcs_t* hbUnicode) in ScriptRunIterator() argument
226 : fCurrent(utf8), fEnd(fCurrent + utf8Bytes) in ScriptRunIterator()
[all …]
/external/okhttp/okio/okio/src/test/java/okio/
DByteStringTest.java42 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/libvterm/src/
Dmouse.c25 char utf8[18]; size_t len = 0; in output_mouse() local
30 len += fill_utf8((code | modifiers) + 0x20, utf8 + len); in output_mouse()
31 len += fill_utf8(col + 0x21, utf8 + len); in output_mouse()
32 len += fill_utf8(row + 0x21, utf8 + len); in output_mouse()
33 utf8[len] = 0; in output_mouse()
35 vterm_push_output_sprintf_ctrl(state->vt, C1_CSI, "M%s", utf8); in output_mouse()
/external/icu/icu4c/source/common/
Ducnv_u8.cpp654 UConverter *utf8; in ucnv_UTF8FromUTF8() local
666 utf8=pToUArgs->converter; in ucnv_UTF8FromUTF8()
673 if(utf8->toULength > 0) { in ucnv_UTF8FromUTF8()
674 toULength=oldToULength=utf8->toULength; in ucnv_UTF8FromUTF8()
675 toULimit=(int8_t)utf8->mode; in ucnv_UTF8FromUTF8()
676 c=(UChar32)utf8->toUnicodeStatus; in ucnv_UTF8FromUTF8()
716 utf8->toUnicodeStatus=0; in ucnv_UTF8FromUTF8()
717 utf8->toULength=0; in ucnv_UTF8FromUTF8()
777 utf8->toUBytes[oldToULength++]=*source++; in ucnv_UTF8FromUTF8()
779 utf8->toUnicodeStatus=c; in ucnv_UTF8FromUTF8()
[all …]
/external/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp53 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) { in UnicodeSetPerformanceTest()
72 utf8=(char *)malloc(utf8Length); in UnicodeSetPerformanceTest()
73 if(utf8!=NULL) { in UnicodeSetPerformanceTest()
75 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UnicodeSetPerformanceTest()
124 char *utf8; member in UnicodeSetPerformanceTest
319 char utf8[4]; in SpanUTF8() local
328 U8_APPEND_UNSAFE(utf8, length, c); in SpanUTF8()
329 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) { in SpanUTF8()
343 const char *s=testcase.utf8; in call()
365 char utf8[4]; in SpanBackUTF8() local
[all …]
/external/syzkaller/vendor/golang.org/x/text/unicode/norm/
Dinput.go41 for ; p < max && in.str[p] < utf8.RuneSelf; p++ {
44 for ; p < max && in.bytes[p] < utf8.RuneSelf; p++ {
52 for ; p < len(in.str) && !utf8.RuneStart(in.str[p]); p++ {
55 for ; p < len(in.bytes) && !utf8.RuneStart(in.bytes[p]); p++ {
98 r, size = utf8.DecodeRuneInString(in.str[p:])
103 r, size = utf8.DecodeRune(in.bytes[p:])
/external/v8/src/
Dd8-console.cc93 v8::String::Utf8Value utf8(isolate_, label); in Time() local
94 std::string string(*utf8); in Time()
117 v8::String::Utf8Value utf8(isolate_, label); in TimeEnd() local
118 std::string string(*utf8); in TimeEnd()
123 printf("console.timeEnd: %s, %f\n", *utf8, delta.InMillisecondsF()); in TimeEnd()
137 v8::String::Utf8Value utf8(isolate_, label); in TimeStamp() local
138 std::string string(*utf8); in TimeStamp()
139 printf("console.timeStamp: %s, %f\n", *utf8, delta.InMillisecondsF()); in TimeStamp()
/external/vulkan-validation-layers/layers/
Dvk_layer_utils.cpp39 VK_LAYER_EXPORT VkStringErrorFlags vk_string_validate(const int max_length, const char *utf8) { in vk_string_validate() argument
45 if (utf8[i] == 0) { in vk_string_validate()
50 } else if ((utf8[i] >= 0xa) && (utf8[i] < 0x7f)) { in vk_string_validate()
52 } else if ((utf8[i] & UTF8_ONE_BYTE_MASK) == UTF8_ONE_BYTE_CODE) { in vk_string_validate()
54 } else if ((utf8[i] & UTF8_TWO_BYTE_MASK) == UTF8_TWO_BYTE_CODE) { in vk_string_validate()
56 } else if ((utf8[i] & UTF8_THREE_BYTE_MASK) == UTF8_THREE_BYTE_CODE) { in vk_string_validate()
68 if ((utf8[i] & UTF8_DATA_BYTE_MASK) != UTF8_DATA_BYTE_CODE) { in vk_string_validate()

12345678910>>...15