Searched refs:utf8 (Results 1 - 25 of 457) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/WebKit/Source/web/tests/
H A DWebSelectorTest.cpp44 EXPECT_EQ("h1, h2[style=\"foobar\"] span", canonicalizeSelector("h1,h2[style='foobar'] span").utf8());
45 EXPECT_EQ("h1, h2[style=\"foobar\"] span", canonicalizeSelector("h1, h2[style=\"foobar\"] span").utf8());
50 EXPECT_EQ("", canonicalizeSelector("h1..h2").utf8());
51 EXPECT_EQ("", canonicalizeSelector("h1..h2", WebSelectorTypeCompound).utf8());
56 EXPECT_EQ("", canonicalizeSelector("h1 span,h2", WebSelectorTypeCompound).utf8());
57 EXPECT_EQ("h1, h2[style=\"foobar\"].cls", canonicalizeSelector("h1,h2[style=\"foobar\"].cls", WebSelectorTypeCompound).utf8());
H A DLocaleMacTest.cpp179 EXPECT_STREQ("Week 04, 2005", formatWeek("en_US", "2005-W04").utf8().data());
180 EXPECT_STREQ("Week 52, 2005", formatWeek("en_US", "2005-W52").utf8().data());
185 EXPECT_STREQ("April 2005", formatMonth("en_US", "2005-04", false).utf8().data());
186 EXPECT_STREQ("avril 2005", formatMonth("fr_FR", "2005-04", false).utf8().data());
187 EXPECT_STREQ("2005\xE5\xB9\xB4" "04\xE6\x9C\x88", formatMonth("ja_JP", "2005-04", false).utf8().data());
189 EXPECT_STREQ("Apr 2005", formatMonth("en_US", "2005-04", true).utf8().data());
190 EXPECT_STREQ("avr. 2005", formatMonth("fr_FR", "2005-04", true).utf8().data());
191 EXPECT_STREQ("2005\xE5\xB9\xB4" "04\xE6\x9C\x88", formatMonth("ja_JP", "2005-04", true).utf8().data());
196 EXPECT_STREQ("04/27/2005", formatDate("en_US", 2005, April, 27).utf8().data());
197 EXPECT_STREQ("27/04/2005", formatDate("fr_FR", 2005, April, 27).utf8()
[all...]
H A DLocaleWinTest.cpp158 EXPECT_STREQ("04/27/2005", formatDate(EnglishUS, 2005, April, 27).utf8().data());
159 EXPECT_STREQ("27/04/2005", formatDate(FrenchFR, 2005, April, 27).utf8().data());
160 EXPECT_STREQ("2005/04/27", formatDate(JapaneseJP, 2005, April, 27).utf8().data());
172 EXPECT_STREQ("January", monthLabel(EnglishUS, January).utf8().data());
173 EXPECT_STREQ("June", monthLabel(EnglishUS, June).utf8().data());
174 EXPECT_STREQ("December", monthLabel(EnglishUS, December).utf8().data());
176 EXPECT_STREQ("janvier", monthLabel(FrenchFR, January).utf8().data());
177 EXPECT_STREQ("juin", monthLabel(FrenchFR, June).utf8().data());
178 EXPECT_STREQ("d\xC3\xA9" "cembre", monthLabel(FrenchFR, December).utf8().data());
180 EXPECT_STREQ("1\xE6\x9C\x88", monthLabel(JapaneseJP, January).utf8()
[all...]
H A DLocaleICUTest.cpp142 return os << labels.toString().utf8().data();
156 EXPECT_STREQ("MMMM yyyy", monthFormat("en_US").utf8().data());
157 EXPECT_STREQ("MMMM yyyy", monthFormat("fr").utf8().data());
158 EXPECT_STREQ("yyyy\xE5\xB9\xB4M\xE6\x9C\x88", monthFormat("ja").utf8().data());
164 EXPECT_STREQ("h:mm:ss a", localizedDateFormatText("en_US").utf8().data());
165 EXPECT_STREQ("HH:mm:ss", localizedDateFormatText("fr").utf8().data());
166 EXPECT_STREQ("H:mm:ss", localizedDateFormatText("ja").utf8().data());
171 EXPECT_STREQ("h:mm a", localizedShortDateFormatText("en_US").utf8().data());
172 EXPECT_STREQ("HH:mm", localizedShortDateFormatText("fr").utf8().data());
173 EXPECT_STREQ("H:mm", localizedShortDateFormatText("ja").utf8()
[all...]
/external/chromium_org/mojo/services/html_viewer/
H A Dblink_basic_type_converters.cc16 return String(str.utf8());
27 std::string utf8 = input.utf8(); local
28 Array<uint8_t> result(utf8.size());
29 for (size_t i = 0; i < utf8.size(); ++i)
30 result[i] = utf8[i];
/external/chromium_org/third_party/WebKit/Source/modules/webdatabase/sqlite/
H A DSQLiteFileSystem.cpp50 return sqlite3_open(filename.utf8().data(), database);
52 return sqlite3_open_v2(filename.utf8().data(), database, SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, "chromium_vfs");
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
H A Dnormalize_utf8.h38 char utf8[4]; local
39 int len = it.get_utf8(utf8);
40 normalized.append(utf8, len);
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/
H A DUtf8.java48 public static int utf8StringLengthInBytes(String utf8) { argument
50 if (utf8 != null) {
51 return utf8.getBytes("UTF-8").length;
/external/chromium_org/third_party/skia/include/core/
H A DSkUtils.h52 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) { argument
53 SkASSERT(utf8);
54 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
57 int SkUTF8_CountUnichars(const char utf8[]);
58 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength);
59 SkUnichar SkUTF8_ToUnichar(const char utf8[]);
64 into a utf8 sequence. Will be 1..kMaxBytesInUTF8Sequence,
67 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
83 char utf8[] = NULL);
/external/skia/include/core/
H A DSkUtils.h52 inline int SkUTF8_CountUTF8Bytes(const char utf8[]) { argument
53 SkASSERT(utf8);
54 return SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
57 int SkUTF8_CountUnichars(const char utf8[]);
58 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength);
59 SkUnichar SkUTF8_ToUnichar(const char utf8[]);
64 into a utf8 sequence. Will be 1..kMaxBytesInUTF8Sequence,
67 size_t SkUTF8_FromUnichar(SkUnichar uni, char utf8[] = NULL);
83 char utf8[] = NULL);
/external/chromium_org/third_party/webrtc/base/
H A Diosfilesystem.mm25 const char* utf8 = [s UTF8String];
26 size_t len = strlen(utf8) + 1;
31 strcpy(copy, utf8);
/external/qemu/telephony/
H A Dgsm.h71 /* check that a given utf8 string is well-formed, returns 1 on success, 0 otherwise */
72 extern int utf8_check( cbytes_t utf8, int utf8len );
74 /* check that all characters in a given utf8 string can be encoded into the GSM alphabet.
76 extern int utf8_check_gsm7( cbytes_t utf8, int utf8len );
78 /* try to skip enough utf8 characters to generate gsm7len GSM septets */
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 );
87 /* convert a utf8 string into an array of 8-bit unpacked GSM septets,
89 extern int utf8_to_gsm8( cbytes_t utf8, int utf8len, bytes_t dst );
91 /* convert a GSM septets string into a utf-8 byte string. assumes that 'utf8' i
[all...]
/external/chromium_org/third_party/skia/src/core/
H A DSkUtils.cpp179 int SkUTF8_CountUnichars(const char utf8[]) { argument
180 SkASSERT(utf8);
185 int c = *(const uint8_t*)utf8;
189 utf8 += SkUTF8_LeadByteToCount(c);
195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { argument
196 SkASSERT(utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
201 while (utf8 < stop) {
202 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
208 SkUTF8_ToUnichar(const char utf8[]) argument
266 SkUTF8_FromUnichar(SkUnichar uni, char utf8[]) argument
[all...]
/external/skia/src/core/
H A DSkUtils.cpp179 int SkUTF8_CountUnichars(const char utf8[]) { argument
180 SkASSERT(utf8);
185 int c = *(const uint8_t*)utf8;
189 utf8 += SkUTF8_LeadByteToCount(c);
195 int SkUTF8_CountUnichars(const char utf8[], size_t byteLength) { argument
196 SkASSERT(NULL != utf8 || 0 == byteLength);
199 const char* stop = utf8 + byteLength;
201 while (utf8 < stop) {
202 utf8 += SkUTF8_LeadByteToCount(*(const uint8_t*)utf8);
208 SkUTF8_ToUnichar(const char utf8[]) argument
266 SkUTF8_FromUnichar(SkUnichar uni, char utf8[]) argument
[all...]
/external/flac/libFLAC/
H A Dformat.c316 static FLaC__INLINE unsigned utf8len_(const FLAC__byte *utf8) argument
318 FLAC__ASSERT(0 != utf8);
319 if ((utf8[0] & 0x80) == 0) {
322 else if ((utf8[0] & 0xE0) == 0xC0 && (utf8[1] & 0xC0) == 0x80) {
323 if ((utf8[0] & 0xFE) == 0xC0) /* overlong sequence check */
327 else if ((utf8[0] & 0xF0) == 0xE0 && (utf8[1] & 0xC0) == 0x80 && (utf8[2] & 0xC0) == 0x80) {
328 if (utf8[
[all...]
/external/chromium_org/third_party/WebKit/Source/platform/network/
H A DResourceRequestTest.cpp43 EXPECT_STREQ("http://www.example.com/test.htm", original.url().string().utf8().data());
46 EXPECT_STREQ("http://www.example.com/first_party.htm", original.firstPartyForCookies().string().utf8().data());
47 EXPECT_STREQ("GET", original.httpMethod().utf8().data());
48 EXPECT_STREQ("Bar", original.httpHeaderFields().get("Foo").utf8().data());
49 EXPECT_STREQ("Fuga", original.httpHeaderFields().get("Piyo").utf8().data());
51 EXPECT_STREQ("Test Body", original.httpBody()->flattenToString().utf8().data());
62 EXPECT_STREQ("http://www.example.com/referrer.htm", original.httpReferrer().utf8().data());
68 EXPECT_STREQ("http://www.example.com/test.htm", copy1->url().string().utf8().data());
71 EXPECT_STREQ("http://www.example.com/first_party.htm", copy1->firstPartyForCookies().string().utf8().data());
72 EXPECT_STREQ("GET", copy1->httpMethod().utf8()
[all...]
/external/chromium_org/third_party/sqlite/src/src/
H A Dvdbetrace.c127 Mem utf8; local
128 memset(&utf8, 0, sizeof(utf8));
129 utf8.db = db;
130 sqlite3VdbeMemSetStr(&utf8, pVar->z, pVar->n, enc, SQLITE_STATIC);
131 sqlite3VdbeChangeEncoding(&utf8, SQLITE_UTF8);
132 sqlite3XPrintf(&out, "'%.*q'", utf8.n, utf8.z);
133 sqlite3VdbeMemRelease(&utf8);
/external/chromium_org/third_party/WebKit/Source/core/testing/
H A DURLTestHelpers.cpp45 std::string fullString = std::string(baseURL.utf8().data()) + std::string(fileName.utf8().data());
61 std::string filePath = std::string(Platform::current()->unitTestSupport()->webKitRootDir().utf8().data());
63 filePath.append(std::string(relativeBaseDirectory.utf8().data()));
64 filePath.append(std::string(fileName.utf8().data()));
/external/chromium_org/content/child/indexed_db/
H A Dwebidbfactory_impl.cc29 database_identifier.utf8());
45 database_identifier.utf8());
54 name, callbacks, database_identifier.utf8());
/external/chromium_org/third_party/WebKit/Source/core/editing/
H A DInputMethodControllerTest.cpp58 EXPECT_STREQ("fooX", input->value().utf8().data());
60 EXPECT_STREQ("fooX", input->value().utf8().data());
64 EXPECT_STREQ("fooX", input->value().utf8().data());
66 EXPECT_STREQ("foo", input->value().utf8().data());
70 EXPECT_STREQ("foo\xE2\x98\x85", input->value().utf8().data());
72 EXPECT_STREQ("foo", input->value().utf8().data());
76 EXPECT_STREQ("foo\xF0\x9F\x8F\x86", input->value().utf8().data());
78 EXPECT_STREQ("foo", input->value().utf8().data());
82 EXPECT_STREQ("foo\xE0\xB8\x81\xE0\xB9\x89", input->value().utf8().data());
84 EXPECT_STREQ("foo", input->value().utf8()
[all...]
/external/harfbuzz_ng/util/
H A Dhelper-cairo.hh53 char *utf8; member in struct:helper_cairo_line_t
64 if (utf8)
65 g_free (utf8);
/external/chromium_org/media/blink/
H A Dcache_util.cc43 response.httpHeaderField("etag").utf8(),
44 response.httpHeaderField("Last-Modified").utf8(),
45 response.httpHeaderField("Date").utf8())) {
50 response.httpHeaderField("cache-control").utf8();
76 if (Time::FromString(response.httpHeaderField("Date").utf8().data(), &date) &&
77 Time::FromString(response.httpHeaderField("Expires").utf8().data(),
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DLatin1Converter.java107 byte[] utf8 = convertToUTF8((byte) b);
108 out.append(utf8);
131 byte[] utf8 = convertToUTF8(readAheadBuffer[0]);
132 out.append(utf8);
150 byte[] utf8 = convertToUTF8(b);
151 out.append(utf8);
/external/chromium_org/content/renderer/devtools/
H A Ddevtools_client.cc41 message.utf8()));
46 message.utf8()));
/external/chromium_org/content/shell/renderer/test_runner/
H A Dnotification_presenter.cc66 std::string replaceId(notification.replaceId().utf8());
71 replacements_[replaceId] = notification.title().utf8();
76 delegate_->PrintMessage(notification.title().utf8().data());
85 notification.body().utf8().data());
90 notification.replaceId().utf8().data());
100 std::string title = notification.title().utf8();
110 std::string title = notification.title().utf8();
123 std::string title = notification.title().utf8();

Completed in 794 milliseconds

1234567891011>>