/external/skia/src/core/ |
D | SkUtils.cpp | 177 int SkUTF8_CountUnichars(const char utf8[]) in SkUTF8_CountUnichars() argument 179 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 197 SkASSERT(NULL != utf8 || 0 == byteLength); in SkUTF8_CountUnichars() 200 const char* stop = utf8 + byteLength; in SkUTF8_CountUnichars() 202 while (utf8 < stop) in SkUTF8_CountUnichars() 204 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUnichars() 210 SkUnichar SkUTF8_ToUnichar(const char utf8[]) in SkUTF8_ToUnichar() argument [all …]
|
/external/webkit/WebCore/platform/graphics/gtk/ |
D | FontGtk.cpp | 105 gchar* utf8 = 0; in convertUniCharToUTF8() local 107 utf16_to_utf8(characters, length, utf8, new_length); in convertUniCharToUTF8() 108 if (!utf8) in convertUniCharToUTF8() 114 gchar* str_left = g_utf8_offset_to_pointer(utf8, from); in convertUniCharToUTF8() 116 g_free(utf8); in convertUniCharToUTF8() 117 utf8 = tmp; in convertUniCharToUTF8() 120 gchar* pos = utf8; in convertUniCharToUTF8() 193 gchar* utf8 = convertUniCharToUTF8(run.characters(), run.length(), 0, run.length()); in drawComplexText() local 194 pango_layout_set_text(layout, utf8, -1); in drawComplexText() 202 char* start = g_utf8_offset_to_pointer(utf8, from); in drawComplexText() [all …]
|
D | IconGtk.cpp | 75 if(gtk_icon_theme_has_icon(iconTheme, iconName.utf8().data())) in lookupIconName() 78 if(gtk_icon_theme_has_icon(iconTheme, iconName.utf8().data())) in lookupIconName() 81 if(gtk_icon_theme_has_icon(iconTheme, iconName.utf8().data())) in lookupIconName() 84 if(gtk_icon_theme_has_icon(iconTheme, iconName.utf8().data())) in lookupIconName() 96 if (!g_path_skip_root(filenames[0].utf8().data())) in createIconForFiles() 103 …icon->m_icon = gtk_icon_theme_load_icon(gtk_icon_theme_get_default(), iconName.utf8().data(), 16, … in createIconForFiles()
|
/external/webkit/WebCore/platform/gtk/ |
D | PasteboardGtk.cpp | 100 gchar* text = g_strdup(frame->selectedText().utf8().data()); in writeSelection() 101 gchar* markup = g_strdup(createMarkup(selectedRange, 0, AnnotateForInterchange).utf8().data()); in writeSelection() 113 CString utf8 = text.utf8(); in writePlainText() local 115 gtk_clipboard_set_text(clipboard, utf8.data(), utf8.length()); in writePlainText() 125 CString utf8 = url.string().utf8(); in writeURL() local 126 gtk_clipboard_set_text(clipboard, utf8.data(), utf8.length()); in writeURL() 127 gtk_clipboard_set_text(primary, utf8.data(), utf8.length()); in writeURL() 183 if (gchar* utf8 = gtk_clipboard_wait_for_text(clipboard)) { in documentFragment() local 184 String text = String::fromUTF8(utf8); in documentFragment() 185 g_free(utf8); in documentFragment() [all …]
|
D | ClipboardGtk.cpp | 162 gtk_clipboard_set_text(textClipboard, url.string().utf8().data(), -1); in writeURL() 163 gtk_clipboard_set_text(urlClipboard, url.string().utf8().data(), -1); in writeURL() 164 gtk_clipboard_set_text(urlLabelClipboard, label.utf8().data(), -1); in writeURL() 175 gtk_clipboard_set_text(textClipboard, frame->selectedText().utf8().data(), -1); in writeRange() 176 …gtk_clipboard_set_text(htmlClipboard, createMarkup(range, 0, AnnotateForInterchange).utf8().data()… in writeRange() 185 gtk_clipboard_set_text(textClipboard, text.utf8().data(), -1); in writePlainText()
|
/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/bluetooth/glib/tests/ |
D | convert-test.c | 139 check_utf8_to_ucs4 (const char *utf8, in check_utf8_to_ucs4() argument 154 result = g_utf8_to_ucs4_fast (utf8, utf8_len, &items_written); in check_utf8_to_ucs4() 165 result = g_utf8_to_ucs4 (utf8, utf8_len, &items_read, &items_written, &error); in check_utf8_to_ucs4() 167 if (utf8_len == strlen (utf8)) in check_utf8_to_ucs4() 171 result2 = g_utf8_to_ucs4 (utf8, -1, &items_read2, &items_written2, &error2); in check_utf8_to_ucs4() 186 result3 = g_utf8_to_ucs4 (utf8, utf8_len, NULL, NULL, &error3); in check_utf8_to_ucs4() 230 const char *utf8, in check_ucs4_to_utf8() argument 280 g_assert (strcmp (result, utf8) == 0); in check_ucs4_to_utf8() 284 g_assert (strcmp (result3, utf8) == 0); in check_ucs4_to_utf8() 292 check_utf8_to_utf16 (const char *utf8, in check_utf8_to_utf16() argument [all …]
|
D | unicode-encoding.c | 82 gchar *utf8, in process() argument 88 gboolean is_valid = g_utf8_validate (utf8, -1, &end); in process() 117 ucs4_result = g_utf8_to_ucs4 (utf8, -1, NULL, NULL, &error); in process() 126 ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, NULL, &error); in process() 128 if (!ucs4_result || items_read == strlen (utf8)) in process() 142 ucs4_result = g_utf8_to_ucs4 (utf8, -1, &items_read, &items_written, &error); in process() 150 items_read != strlen (utf8) || in process() 159 ucs4_result = g_utf8_to_ucs4_fast (utf8, -1, &items_written); in process() 175 if (strcmp (utf8_result, utf8) != 0 || in process() 177 items_written != strlen (utf8)) in process() [all …]
|
/external/qemu/telephony/ |
D | gsm.c | 360 utf8_skip( cbytes_t utf8, in utf8_skip() argument 364 cbytes_t p = utf8; in utf8_skip() 412 utf8_write( bytes_t utf8, int offset, int v ) in utf8_write() argument 418 if (utf8) in utf8_write() 419 utf8[offset] = (byte_t) v; in utf8_write() 422 if (utf8) { in utf8_write() 423 utf8[offset+0] = (byte_t)( 0xc0 | (v >> 6) ); in utf8_write() 424 utf8[offset+1] = (byte_t)( 0x80 | (v & 0x3f) ); in utf8_write() 428 if (utf8) { in utf8_write() 429 utf8[offset+0] = (byte_t)( 0xe0 | (v >> 12) ); in utf8_write() [all …]
|
D | gsm.h | 72 extern int utf8_check( cbytes_t utf8, int utf8len ); 76 extern int utf8_check_gsm7( cbytes_t utf8, int utf8len ); 79 extern cbytes_t utf8_skip_gsm7( cbytes_t utf8, cbytes_t utf8end, int gsm7len ); 85 extern int utf8_to_gsm7( cbytes_t utf8, int utf8len, bytes_t dst, int offset ); 89 extern int utf8_to_gsm8( cbytes_t utf8, int utf8len, bytes_t dst ); 94 extern int utf8_from_gsm7( cbytes_t src, int offset, int count, bytes_t utf8 ); 99 extern int utf8_from_gsm8( cbytes_t src, int count, bytes_t utf8 ); 136 extern int ucs2_to_utf8( cbytes_t ucs2, int ucs2len, bytes_t utf8 ); 140 extern int utf8_to_ucs2( cbytes_t utf8, int utf8len, bytes_t ucs2 ); 143 extern cbytes_t utf8_skip( cbytes_t utf8, cbytes_t utf8end, int count);
|
D | sms.c | 45 sms_utf8_from_message_str( const char* str, int strlen, unsigned char* utf8, int utf8len ) in sms_utf8_from_message_str() argument 111 utf8[count] = (byte_t) c; in sms_utf8_from_message_str() 116 utf8[count] = (byte_t)(0xc0 | ((c >> 6) & 0x1f)); in sms_utf8_from_message_str() 118 utf8[count+1] = (byte_t)(0x80 | (c & 0x3f)); in sms_utf8_from_message_str() 123 utf8[count] = (byte_t)(0xc0 | ((c >> 12) & 0xf)); in sms_utf8_from_message_str() 125 utf8[count+1] = (byte_t)(0x80 | ((c >> 6) & 0x3f)); in sms_utf8_from_message_str() 127 utf8[count+2] = (byte_t)(0x80 | (c & 0x3f)); in sms_utf8_from_message_str() 140 int sms_utf8_to_message_str( const unsigned char* utf8, int utf8len, char* str, int strlen ) in sms_utf8_to_message_str() argument 142 cbytes_t p = utf8; in sms_utf8_to_message_str() 905 smspdu_get_text_message( SmsPDU pdu, unsigned char* utf8, int utf8len ) in smspdu_get_text_message() argument [all …]
|
/external/stlport/doc/ |
D | README.utf8 | 1 Here is a description of how you can use STLport to read/write utf8 files. 2 utf8 is a way of encoding wide characters. As so, management of encoding in 4 of the ctype category. However utf8 only describe how encoding must be 14 std::locale loc(".utf8"); 20 std::locale loc(locale::classic(), ".utf8", std::locale::ctype); 22 The only solution to get a locale instance that will handle utf8 encoding 23 is to specifically signal that the codecvt facet should be based on utf8 27 locale loc(locale::classic(), new codecvt_byname<wchar_t, char, mbstate_t>(".utf8")); 30 read/write utf8 files: 32 std::fstream fstr("file.utf8"); [all …]
|
/external/webkit/WebKit/chromium/tests/ |
D | KURLTest.cpp | 45 return str.isEmpty() ? out : out << str.utf8().data(); in operator <<() 237 EXPECT_STREQ(cases[i].expectedProtocol, kurl.string().utf8().data()); in TEST() 240 EXPECT_STREQ(cases[i].expectedHost, kurl.string().utf8().data()); in TEST() 243 EXPECT_STREQ(cases[i].expectedPort, kurl.string().utf8().data()); in TEST() 246 EXPECT_STREQ(cases[i].expectedUser, kurl.string().utf8().data()); in TEST() 249 EXPECT_STREQ(cases[i].expectedPass, kurl.string().utf8().data()); in TEST() 252 EXPECT_STREQ(cases[i].expectedPath, kurl.string().utf8().data()); in TEST() 255 EXPECT_STREQ(cases[i].expectedQuery, kurl.string().utf8().data()); in TEST() 286 EXPECT_STREQ(decodeCases[i].output, str.utf8().data()); in TEST() 291 EXPECT_STRNE("%00", zero.utf8().data()); in TEST() [all …]
|
/external/skia/include/core/ |
D | SkUtils.h | 67 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) in SkUTF8_CountUTF8Bytes() argument 69 SkASSERT(utf8); in SkUTF8_CountUTF8Bytes() 70 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8); in SkUTF8_CountUTF8Bytes() 73 int SkUTF8_CountUnichars(const char utf8[]); 74 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength); 75 SkUnichar SkUTF8_ToUnichar(const char utf8[]); 83 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL); 100 char utf8[] = NULL);
|
/external/chromium/base/ |
D | utf_string_conversions_unittest.cc | 68 std::ostringstream utf8; in TEST() local 69 utf8 << WideToUTF8(kConvertRoundtripCases[i]); in TEST() 71 wide << UTF8ToWide(utf8.str()); in TEST() 88 const char* utf8; in TEST() member 118 UTF8ToWide(convert_cases[i].utf8, in TEST() 119 strlen(convert_cases[i].utf8), in TEST() 144 const char* utf8; in TEST() member 166 std::string expected(convert_cases[i].utf8); in TEST() 176 const char* utf8; in TEST() member 199 std::string expected(convert_cases[i].utf8); in TEST()
|
D | utf_string_conversions.cc | 65 std::wstring UTF8ToWide(const base::StringPiece& utf8) { in UTF8ToWide() argument 67 UTF8ToWide(utf8.data(), utf8.length(), &ret); in UTF8ToWide() 135 string16 UTF8ToUTF16(const std::string& utf8) { in UTF8ToUTF16() argument 139 UTF8ToUTF16(utf8.data(), utf8.length(), &ret); in UTF8ToUTF16() 163 string16 UTF8ToUTF16(const std::string& utf8) { in UTF8ToUTF16() argument 164 return UTF8ToWide(utf8); in UTF8ToUTF16()
|
/external/qemu/distrib/sdl-1.2.12/src/video/x11/ |
D | SDL_x11events.c | 62 Uint32 Utf8ToUcs4(const Uint8 *utf8) in Utf8ToUcs4() argument 68 unsigned char firstOctet = utf8[0]; in Utf8ToUcs4() 161 if ((utf8[i] & 0xC0) /* get the most 2 significant bits by AND'ing with 11000000 */ in Utf8ToUcs4() 175 c |= utf8[i] & 0x3F; in Utf8ToUcs4() 228 static int Utf8ToUtf16(const Uint8 *utf8, const int utf8_length, Uint16 *utf16, const int utf16_max… in Utf8ToUtf16() argument 235 Uint8 const *const end_of_input = utf8 + utf8_length - 1; in Utf8ToUtf16() 237 while (utf8 <= end_of_input) { in Utf8ToUtf16() 242 Uint8 const c = *utf8; in Utf8ToUtf16() 246 utf8 += 1; in Utf8ToUtf16() 252 if (end_of_input - utf8 < 1 || (((utf8[1] ^ 0x80)) & 0xC0)) { in Utf8ToUtf16() [all …]
|
/external/webkit/WebCore/plugins/android/ |
D | PluginPackageAndroid.cpp | 213 PLUGIN_LOG("Loading \"%s\"\n", m_path.utf8().data()); in load() 216 void *handle = dlopen(m_path.utf8().data(), RTLD_NOW); in load() 219 m_path.utf8().data(), dlerror()); in load() 267 PLUGIN_LOG("Fetch Info Loading \"%s\"\n", m_path.utf8().data()); in fetchInfo() 270 void *handle = dlopen(m_path.utf8().data(), RTLD_NOW); in fetchInfo() 273 m_path.utf8().data(), dlerror()); in fetchInfo() 317 PLUGIN_LOG("MIME description: \"%s\"\n", mimeDescription.utf8().data()); in fetchInfo() 336 PLUGIN_LOG("Bad MIME entry \"%s\"\n", mimeEntry.utf8().data()); in fetchInfo() 347 PLUGIN_LOG("mime_type: \"%s\"\n", mimeType.utf8().data()); in fetchInfo() 348 PLUGIN_LOG("extensions: \"%s\"\n", fields[1].utf8().data()); in fetchInfo() [all …]
|
/external/webkit/WebCore/platform/network/soup/ |
D | CookieJarSoup.cpp | 64 GOwnPtr<SoupURI> origin(soup_uri_new(url.string().utf8().data())); in setCookies() 67 …GOwnPtr<SoupURI> firstParty(soup_uri_new(document->firstPartyForCookies().string().utf8().data())); in setCookies() 72 value.utf8().data()); in setCookies() 76 value.utf8().data()); in setCookies() 86 SoupURI* uri = soup_uri_new(url.string().utf8().data()); in cookies() 102 SoupURI* uri = soup_uri_new(url.string().utf8().data()); in cookieRequestHeaderFieldValue()
|
D | ResourceRequestSoup.cpp | 36 …SoupMessage* soupMessage = soup_message_new(httpMethod().utf8().data(), url().string().utf8().data… in toSoupMessage() 45 …soup_message_headers_append(soupHeaders, it->first.string().utf8().data(), it->second.utf8().data(… in toSoupMessage() 51 GOwnPtr<SoupURI> firstParty(soup_uri_new(firstPartyString.utf8().data())); in toSoupMessage()
|
/external/chromium/third_party/icu/source/common/ |
D | ucnv_u8.c | 752 UConverter *utf8, *cnv; in ucnv_UTF8FromUTF8() local 764 utf8=pToUArgs->converter; in ucnv_UTF8FromUTF8() 772 c=(UChar32)utf8->toUnicodeStatus; in ucnv_UTF8FromUTF8() 774 toULength=oldToULength=utf8->toULength; in ucnv_UTF8FromUTF8() 775 toULimit=(int8_t)utf8->mode; in ucnv_UTF8FromUTF8() 832 utf8->toUnicodeStatus=0; in ucnv_UTF8FromUTF8() 833 utf8->toULength=0; in ucnv_UTF8FromUTF8() 905 utf8->toUBytes[oldToULength++]=*source++; in ucnv_UTF8FromUTF8() 907 utf8->toUnicodeStatus=c; in ucnv_UTF8FromUTF8() 908 utf8->toULength=toULength; in ucnv_UTF8FromUTF8() [all …]
|
/external/icu4c/common/ |
D | ucnv_u8.c | 752 UConverter *utf8, *cnv; in ucnv_UTF8FromUTF8() local 764 utf8=pToUArgs->converter; in ucnv_UTF8FromUTF8() 772 c=(UChar32)utf8->toUnicodeStatus; in ucnv_UTF8FromUTF8() 774 toULength=oldToULength=utf8->toULength; in ucnv_UTF8FromUTF8() 775 toULimit=(int8_t)utf8->mode; in ucnv_UTF8FromUTF8() 832 utf8->toUnicodeStatus=0; in ucnv_UTF8FromUTF8() 833 utf8->toULength=0; in ucnv_UTF8FromUTF8() 905 utf8->toUBytes[oldToULength++]=*source++; in ucnv_UTF8FromUTF8() 907 utf8->toUnicodeStatus=c; in ucnv_UTF8FromUTF8() 908 utf8->toULength=toULength; in ucnv_UTF8FromUTF8() [all …]
|
/external/icu4c/test/perf/unisetperf/ |
D | unisetperf.cpp | 50 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) { in UnicodeSetPerformanceTest() 69 utf8=(char *)malloc(utf8Length); in UnicodeSetPerformanceTest() 70 if(utf8!=NULL) { in UnicodeSetPerformanceTest() 72 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 121 char *utf8; member in UnicodeSetPerformanceTest 316 char utf8[4]; in SpanUTF8() local 325 U8_APPEND_UNSAFE(utf8, length, c); in SpanUTF8() 326 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) { in SpanUTF8() 340 const char *s=testcase.utf8; in call() 362 char utf8[4]; in SpanBackUTF8() local [all …]
|
/external/chromium/third_party/icu/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 50 utf8(NULL), utf8Length(0), countInputCodePoints(0), spanCount(0) { in UnicodeSetPerformanceTest() 69 utf8=(char *)malloc(utf8Length); in UnicodeSetPerformanceTest() 70 if(utf8!=NULL) { in UnicodeSetPerformanceTest() 72 u_strToUTF8(utf8, utf8Length, NULL, buffer, bufferLen, &status); in UnicodeSetPerformanceTest() 121 char *utf8; member in UnicodeSetPerformanceTest 316 char utf8[4]; in SpanUTF8() local 325 U8_APPEND_UNSAFE(utf8, length, c); in SpanUTF8() 326 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) { in SpanUTF8() 340 const char *s=testcase.utf8; in call() 362 char utf8[4]; in SpanBackUTF8() local [all …]
|
/external/chromium/googleurl/src/ |
D | url_canon_host.cc | 266 StackBuffer utf8; in DoComplexHost() local 268 utf8.push_back(utf8_source[i]); in DoComplexHost() 270 AppendInvalidNarrowString(utf8.data(), 0, utf8.length(), output); in DoComplexHost() 294 StackBuffer utf8; in DoComplexHost() local 295 if (!ConvertUTF16ToUTF8(host, host_len, &utf8)) { in DoComplexHost() 302 return DoComplexHost(utf8.data(), utf8.length(), has_non_ascii, in DoComplexHost()
|