Home
last modified time | relevance | path

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

123456789

/external/skia/src/core/
DSkUtils.cpp68 int SkUTF8_CountUnichars(const char utf8[]) { in SkUTF8_CountUnichars() argument
69 SkASSERT(utf8); in SkUTF8_CountUnichars()
74 int c = *(const uint8_t*)utf8; in SkUTF8_CountUnichars()
78 utf8 += SkUTF8_LeadByteToCount(c); in SkUTF8_CountUnichars()
85 int SkUTF8_CountUnicharsWithError(const char utf8[], size_t byteLength) { in SkUTF8_CountUnicharsWithError() argument
86 SkASSERT(utf8 || 0 == byteLength); in SkUTF8_CountUnicharsWithError()
89 const char* stop = utf8 + byteLength; in SkUTF8_CountUnicharsWithError()
91 while (utf8 < stop) { in SkUTF8_CountUnicharsWithError()
92 int type = utf8_byte_type(*(const uint8_t*)utf8); in SkUTF8_CountUnicharsWithError()
95 utf8 + type > stop) { // Sequence extends beyond end. in SkUTF8_CountUnicharsWithError()
[all …]
DSkUtils.h39 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) { in SkUTF8_CountUTF8Bytes() argument
40 SkASSERT(utf8); in SkUTF8_CountUTF8Bytes()
41 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUTF8Bytes()
44 int SkUTF8_CountUnichars(const char utf8[]);
47 int SkUTF8_CountUnicharsWithError(const char utf8[], size_t byteLength);
50 inline int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { in SkUTF8_CountUnichars() argument
51 return SkClampPos(SkUTF8_CountUnicharsWithError(utf8, byteLength)); in SkUTF8_CountUnichars()
70 SkUnichar SkUTF8_ToUnichar(const char utf8[]);
78 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
94 char utf8[] = NULL);
/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/svox/pico/lib/
Dpicobase.c937 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/
Dutf_string_conversions.cc79 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 …]
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/autotest/database/
Dschema_051.sql24 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/ImageMagick/MagickCore/
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()
Dxml-tree.c317 *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/pdfium/xfa/fxbarcode/
DBC_UtilCodingConvert.cpp27 CFX_ByteString utf8 = unicode.UTF8Encode(); in LocaleToUtf8() local
28 for (int32_t i = 0; i < utf8.GetLength(); i++) { in LocaleToUtf8()
29 dst.Add(utf8[i]); in LocaleToUtf8()
35 CFX_ByteString utf8; in Utf8ToLocale() local
37 utf8 += src[i]; in Utf8ToLocale()
39 CFX_WideString unicode = CFX_WideString::FromUTF8(utf8.AsStringC()); 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/ImageMagick/utilities/
Dmagick.c182 **utf8; in wmain() local
190 utf8=NTArgvToUTF8(argc,argv); in wmain()
191 status=MagickMain(argc,utf8); in wmain()
193 utf8[i]=DestroyString(utf8[i]); in wmain()
194 utf8=(char **) RelinquishMagickMemory(utf8); in wmain()
/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/harfbuzz_ng/src/
Dhb-glib.cc253 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/
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/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/icu/icu4c/source/common/
Ducnv_u8.c770 UConverter *utf8; in ucnv_UTF8FromUTF8() local
782 utf8=pToUArgs->converter; in ucnv_UTF8FromUTF8()
789 c=(UChar32)utf8->toUnicodeStatus; in ucnv_UTF8FromUTF8()
791 toULength=oldToULength=utf8->toULength; in ucnv_UTF8FromUTF8()
792 toULimit=(int8_t)utf8->mode; in ucnv_UTF8FromUTF8()
849 utf8->toUnicodeStatus=0; in ucnv_UTF8FromUTF8()
850 utf8->toULength=0; in ucnv_UTF8FromUTF8()
922 utf8->toUBytes[oldToULength++]=*source++; in ucnv_UTF8FromUTF8()
924 utf8->toUnicodeStatus=c; in ucnv_UTF8FromUTF8()
925 utf8->toULength=toULength; in ucnv_UTF8FromUTF8()
[all …]
/external/libexif/test/nls/
Dtest-codeset.c43 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/python/cpython2/Parser/
Dtokenizer.c408 PyObject* utf8 = NULL; in fp_readl()
430 utf8 = buf; in fp_readl()
432 if (utf8 == NULL) { in fp_readl()
433 utf8 = PyUnicode_AsUTF8String(buf); in fp_readl()
435 if (utf8 == NULL) in fp_readl()
438 str = PyString_AsString(utf8); in fp_readl()
439 utf8len = PyString_GET_SIZE(utf8); in fp_readl()
443 Py_DECREF(utf8); in fp_readl()
450 Py_DECREF(utf8); in fp_readl()
614 PyObject *utf8; in translate_into_utf8() local
[all …]
/external/skia/src/sfnt/
DSkOTTable_name.cpp33 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/
DUtf8.java48 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/
Dhelper-cairo.hh56 char *utf8; member
67 if (utf8) in finish()
68 g_free (utf8); in finish()
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp51 utf8(NULL), utf8Length(0), countInputCodePoints(0) { in UTrie2PerfTest()
65 utf8=(char *)malloc(utf8Length); in UTrie2PerfTest()
66 if(utf8!=NULL) { in UTrie2PerfTest()
68 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UTrie2PerfTest()
89 char *utf8; member in UTrie2PerfTest
166 UBool isFCD=unorm_checkFCDUTF8((const uint8_t *)testcase.utf8, testcase.utf8Length, NULL);
/external/flatbuffers/js/
Dflatbuffers.js737 var utf8 = s;
739 var utf8 = [];
756 utf8.push(codePoint);
759 utf8.push(((codePoint >> 6) & 0x1F) | 0xC0);
762 utf8.push(((codePoint >> 12) & 0x0F) | 0xE0);
764 utf8.push(
768 utf8.push(((codePoint >> 6) & 0x3F) | 0x80);
770 utf8.push((codePoint & 0x3F) | 0x80);
776 this.startVector(1, utf8.length, 1);
777 this.bb.setPosition(this.space -= utf8.length);
[all …]
/external/webrtc/webrtc/base/
Dwin32.h49 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);

123456789