Searched defs:utf8 (Results 1 - 25 of 137) sorted by relevance

123456

/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/components/os_crypt/
H A Dos_crypt_win.cc21 std::string utf8; local
22 if (!DecryptString(ciphertext, &utf8))
25 *plaintext = base::UTF8ToUTF16(utf8);
H A Dos_crypt_posix.cc64 std::string utf8; local
65 if (!DecryptString(ciphertext, &utf8))
68 *plaintext = base::UTF8ToUTF16(utf8);
/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);
H A Dunicodestring.h36 explicit UnicodeString(const char* utf8) argument
37 : text_(UTF8ToUnicodeText(utf8, std::strlen(utf8))),
/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/base/strings/
H A Dsys_string_conversions_posix.cc19 std::wstring SysUTF8ToWide(const StringPiece& utf8) { argument
23 UTF8ToWide(utf8.data(), utf8.size(), &out);
H A Dsys_string_conversions_win.cc19 std::wstring SysUTF8ToWide(const StringPiece& utf8) { argument
20 return SysMultiByteToWide(utf8, CP_UTF8);
H A Dutf_string_conversions_unittest.cc50 std::ostringstream utf8; local
51 utf8 << WideToUTF8(kConvertRoundtripCases[i]);
53 wide << UTF8ToWide(utf8.str());
70 const char* utf8; member in struct:base::UTF8ToWideCase
100 UTF8ToWide(convert_cases[i].utf8,
101 strlen(convert_cases[i].utf8),
126 const char* utf8; member in struct:base::WideToUTF8Case
148 std::string expected(convert_cases[i].utf8);
158 const char* utf8; member in struct:base::WideToUTF8Case
181 std::string expected(convert_cases[i].utf8);
[all...]
H A Dutf_offset_string_conversions_unittest.cc22 const char* utf8; member in struct:base::UTF8ToUTF16Case
41 UTF8ToUTF16AndAdjustOffsets(utf8_to_utf16_cases[i].utf8, &offsets);
H A Dutf_string_conversions.cc63 std::wstring UTF8ToWide(const StringPiece& utf8) { argument
65 UTF8ToWide(utf8.data(), utf8.length(), &ret);
133 string16 UTF8ToUTF16(const StringPiece& utf8) { argument
137 UTF8ToUTF16(utf8.data(), utf8.length(), &ret);
161 string16 UTF8ToUTF16(const StringPiece& utf8) { argument
162 return UTF8ToWide(utf8);
/external/chromium_org/chrome/browser/ui/app_list/search/
H A Dhistory.cc18 std::string NormalizeString(const std::string& utf8) { argument
19 TokenizedString tokenized(base::UTF8ToUTF16(utf8));
/external/chromium_org/net/proxy/
H A Dproxy_resolver_script_data.cc14 const std::string& utf8) {
17 base::UTF8ToUTF16(utf8));
13 FromUTF8( const std::string& utf8) argument
/external/chromium_org/third_party/cld/encodings/compact_lang_det/win/
H A Dcld_unicodetext.cc26 std::string utf8; local
31 StringByteSink sink(&utf8);
33 return utf8;
/external/chromium_org/third_party/webrtc/system_wrappers/interface/
H A Dutf_util_win.h24 inline std::wstring ToUtf16(const char* utf8, size_t len) { argument
25 int len16 = ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len),
28 ::MultiByteToWideChar(CP_UTF8, 0, utf8, static_cast<int>(len), ws.get(),
/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/base/i18n/
H A Dicu_string_conversions_unittest.cc81 std::string utf8; local
83 OnStringConversionError::SKIP, &utf8));
84 EXPECT_EQ(expected, utf8);
/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/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/url/
H A Durl_canon_filesystemurl.cc121 RawCanonOutput<1024> utf8; local
124 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed);
H A Durl_canon_mailtourl.cc58 // Query -- always use the default utf8 charset converter.
102 RawCanonOutput<1024> utf8; local
105 SetupUTF16OverrideComponents(base, replacements, &utf8, &source, &parsed);
/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/ppapi/tests/
H A Dtest_char_set.cc251 instance_->pp_instance(), badutf8, 3, "utf8",
259 instance_->pp_instance(), badutf8, 3, "utf8",
269 instance_->pp_instance(), badutf8, 3, "utf8",
318 badutf8, 3, "utf8", PP_CHARSET_TRUSTED_CONVERSIONERROR_FAIL,
327 badutf8, 3, "utf8", PP_CHARSET_TRUSTED_CONVERSIONERROR_SKIP,
337 badutf8, 3, "utf8", PP_CHARSET_TRUSTED_CONVERSIONERROR_SUBSTITUTE,
370 std::vector<uint16_t> TestCharSet::UTF8ToUTF16(const std::string& utf8) { argument
373 instance_->pp_instance(), utf8.c_str(),
374 static_cast<uint32_t>(utf8.size()),
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebString.cpp83 std::string WebString::utf8() const function in class:blink::WebString
85 StringUTF8Adaptor utf8(m_private.get());
86 return std::string(utf8.data(), utf8.length());
/external/chromium_org/third_party/skia/src/sfnt/
H A DSkOTTable_name.cpp33 static void SkStringFromUTF16BE(const uint16_t* utf16be, size_t length, SkString& utf8) { argument
36 utf8.reset();
40 utf8.appendUnichar(SkUTF16BE_NextUnichar(&utf16be));
68 static void SkStringFromMacRoman(const uint8_t* macRoman, size_t length, SkString& utf8) { argument
69 utf8.reset();
71 utf8.appendUnichar(macRoman[i] < 0x80 ? macRoman[i]

Completed in 768 milliseconds

123456