Searched defs:utf16 (Results 1 - 25 of 52) sorted by relevance

123

/external/chromium_org/base/strings/
H A Dlatin1_string_conversions.cc11 const char16* utf16) {
16 return string16(utf16, utf16 + length);
9 Latin1OrUTF16ToUTF16(size_t length, const Latin1Char* latin1, const char16* utf16) argument
H A Dutf_string_conversions_unittest.cc125 const wchar_t* utf16; member in struct:base::WideToUTF8Case
145 WideToUTF8(convert_cases[i].utf16,
146 wcslen(convert_cases[i].utf16),
H A Dutf_offset_string_conversions_unittest.cc46 char16 utf16[10]; member in struct:base::UTF16ToUTF8Case
71 UTF16ToUTF8AndAdjustOffsets(utf16_to_utf8_cases[i].utf16, &offsets);
H A Dutf_string_conversions.cc88 std::wstring UTF16ToWide(const string16& utf16) { argument
89 return utf16;
116 std::wstring UTF16ToWide(const string16& utf16) { argument
118 UTF16ToWide(utf16.data(), utf16.length(), &ret);
146 std::string UTF16ToUTF8(const string16& utf16) { argument
150 UTF16ToUTF8(utf16.data(), utf16.length(), &ret);
169 std::string UTF16ToUTF8(const string16& utf16) { argument
170 return WideToUTF8(utf16);
185 UTF16ToASCII(const string16& utf16) argument
[all...]
H A Dutf_offset_string_conversions.cc247 const base::StringPiece16& utf16,
251 LimitOffset<base::StringPiece16>(utf16.length()));
253 PrepareForUTF8Output(utf16.data(), utf16.length(), &result);
255 ConvertUnicode(utf16.data(), utf16.length(), &result, &adjustments);
246 UTF16ToUTF8AndAdjustOffsets( const base::StringPiece16& utf16, std::vector<size_t>* offsets_for_adjustment) argument
/external/chromium_org/device/usb/
H A Dusb_service_unittest.cc33 base::string16 utf16; local
34 ASSERT_TRUE(device->GetManufacturer(&utf16));
35 ASSERT_EQ("Google Inc.", base::UTF16ToUTF8(utf16));
37 ASSERT_TRUE(device->GetProduct(&utf16));
38 ASSERT_EQ("Test Gadget (default state)", base::UTF16ToUTF8(utf16));
40 ASSERT_TRUE(device->GetSerialNumber(&utf16));
41 ASSERT_EQ(gadget->GetSerialNumber(), base::UTF16ToUTF8(utf16));
/external/chromium_org/content/common/
H A Dgamepad_param_traits.cc21 base::string16 utf16; local
22 utf16.reserve(array_size);
24 utf16[i] = web_string[i];
26 log->append(base::UTF16ToUTF8(utf16));
/external/chromium_org/net/proxy/
H A Dproxy_resolver_script_data.cc22 const base::string16& utf16) {
23 return new ProxyResolverScriptData(TYPE_SCRIPT_CONTENTS, GURL(), utf16);
39 const base::string16& ProxyResolverScriptData::utf16() const { function in class:net::ProxyResolverScriptData
56 return utf16() == other->utf16();
68 const base::string16& utf16)
71 utf16_(utf16) {
21 FromUTF16( const base::string16& utf16) argument
66 ProxyResolverScriptData(Type type, const GURL& url, const base::string16& utf16) argument
H A Dproxy_script_fetcher_impl.cc50 // to |*utf16|.
54 base::string16* utf16) {
67 ConvertToUTF16WithSubstitutions(bytes, codepage, utf16);
52 ConvertResponseToUTF16(const std::string& charset, const std::string& bytes, base::string16* utf16) argument
/external/chromium_org/base/i18n/
H A Dicu_string_conversions_unittest.cc310 string16 utf16; local
314 &utf16);
321 EXPECT_EQ(utf16_expected, utf16);
329 success = UTF16ToCodepage(utf16, kConvertCodepageCases[i].codepage_name,
H A Dicu_string_conversions.cc149 bool UTF16ToCodepage(const string16& utf16, argument
160 return ConvertFromUTF16(converter, utf16.c_str(),
161 static_cast<int>(utf16.length()), on_error, encoded);
167 string16* utf16) {
168 utf16->clear();
192 utf16->clear(); // Make sure the output is empty on error.
196 utf16->assign(buffer.get(), actual_size);
220 std::vector<UChar> utf16(wide.length() * 2 + 1);
221 u_strFromUTF32(&utf16[0], utf16
164 CodepageToUTF16(const std::string& encoded, const char* codepage_name, OnStringConversionError::Type on_error, string16* utf16) argument
272 string16 utf16; local
[all...]
/external/chromium_org/extensions/browser/api/usb_private/
H A Dusb_private_api.cc122 base::string16 utf16; local
123 if (device->GetManufacturer(&utf16)) {
125 new std::string(base::UTF16ToUTF8(utf16)));
128 if (device->GetProduct(&utf16)) {
129 device_info.product_string.reset(new std::string(base::UTF16ToUTF8(utf16)));
132 if (device->GetSerialNumber(&utf16)) {
133 device_info.serial_string.reset(new std::string(base::UTF16ToUTF8(utf16)));
/external/chromium_org/third_party/WebKit/Source/platform/exported/
H A DWebCString.cpp82 WebString WebCString::utf16() const function in class:blink::WebCString
/external/chromium_org/url/
H A Durl_canon_query.cc77 RawCanonOutputW<1024> utf16; local
78 ConvertUTF8ToUTF16(&spec[query.begin], query.len, &utf16);
79 converter->ConvertFromUTF16(utf16.data(), utf16.length(), output);
H A Durl_canon_host.cc240 StackBufferW utf16; local
241 if (!ConvertUTF8ToUTF16(utf8_source, utf8_source_len, &utf16)) {
254 return DoIDNHost(utf16.data(), utf16.length(), output);
/external/chromium_org/ppapi/tests/
H A Dtest_char_set.cc39 std::vector<uint16_t> utf16; local
40 utf16.push_back(0);
44 instance_->pp_instance(), &utf16[0], 0, "latin1",
53 utf16 = UTF8ToUTF16(utf8source);
55 instance_->pp_instance(), &utf16[0], static_cast<uint32_t>(utf16.size()),
61 utf16 = UTF8ToUTF16("h\xe4\xbd\xa0i");
66 instance_->pp_instance(), &utf16[0], static_cast<uint32_t>(utf16.size()),
73 instance_->pp_instance(), &utf16[
113 std::vector<uint16_t> utf16; local
[all...]
/external/chromium_org/ppapi/thunk/
H A Dppb_char_set_thunk.cc16 const uint16_t* utf16, uint32_t utf16_len,
27 utf16, utf16_len, output_char_set, on_error, output_length);
30 PP_Bool UTF16ToCharSet(const uint16_t utf16[], argument
47 utf16, utf16_len, output_char_set, on_error,
15 UTF16ToCharSetDeprecated(PP_Instance instance, const uint16_t* utf16, uint32_t utf16_len, const char* output_char_set, PP_CharSet_ConversionError on_error, uint32_t* output_length) argument
/external/chromium_org/content/renderer/media/
H A Drtc_data_channel_handler.cc162 base::string16 utf16; local
163 if (!base::UTF8ToUTF16(buffer.data.data(), buffer.data.length(), &utf16)) {
167 webkit_client_->didReceiveStringData(utf16);
/external/chromium_org/ppapi/shared_impl/private/
H A Dppb_char_set_shared.cc62 const uint16_t* utf16,
73 UTF16ToCharSet(utf16, utf16_len, output_char_set, on_error, NULL,
81 PP_Bool result = UTF16ToCharSet(utf16, utf16_len, output_char_set, on_error,
94 const uint16_t utf16[],
100 if (!utf16 || !output_char_set || !output_length) {
156 reinterpret_cast<const UChar*>(utf16), utf16_len, &status));
61 UTF16ToCharSetDeprecated( const uint16_t* utf16, uint32_t utf16_len, const char* output_char_set, PP_CharSet_ConversionError deprecated_on_error, uint32_t* output_length) argument
93 UTF16ToCharSet( const uint16_t utf16[], uint32_t utf16_len, const char* output_char_set, PP_CharSet_Trusted_ConversionError on_error, char* output_buffer, uint32_t* output_length) argument
/external/chromium_org/third_party/harfbuzz-ng/src/
H A Dhb-icu.cc189 UChar utf16[4], normalized[5]; local
196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
259 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err);
263 len = unorm_normalize (utf16, le
318 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
[all...]
/external/chromium_org/third_party/sqlite/src/tool/
H A Dspeedtest16.c67 void *utf16; local
75 utf16 = asciiToUtf16le(zSql);
77 rc = sqlite3_prepare16_v2(db, utf16, -1, &pStmt, &stmtTail);
95 free(utf16);
99 void *utf16; local
127 utf16 = asciiToUtf16le(argv[1]);
129 rc = sqlite3_open16(utf16, &db);
133 free(utf16);
/external/harfbuzz_ng/src/
H A Dhb-icu.cc189 UChar utf16[4], normalized[5]; local
196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err);
248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
259 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err);
263 len = unorm_normalize (utf16, le
318 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
[all...]
/external/chromium_org/net/cert/
H A Dx509_cert_types_mac.cc117 base::string16 utf16; local
118 if (!ConvertToUTF16(DataToString(data), kCharsetLatin1, &utf16))
120 return base::UTF16ToUTF8(utf16);
/external/chromium_org/third_party/icu/source/test/perf/unisetperf/
H A Dunisetperf.cpp210 UChar utf16[2]; local
214 utf16[0]=(UChar)c;
215 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) {
220 utf16[0]=(UChar)c;
222 utf16[1]=(UChar)c2;
223 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) {
261 UChar utf16[2]; local
265 utf16[0]=(UChar)c;
266 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) {
271 utf16[
[all...]
/external/harfbuzz_ng/test/api/
H A Dtest-buffer.c33 static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'}; variable
50 "utf16",
82 hb_buffer_add_utf16 (b, utf16, G_N_ELEMENTS (utf16), 1, G_N_ELEMENTS (utf16) - 2);
701 const uint16_t utf16[8]; member in struct:__anon21687
705 /* note: we skip the first and last item from utf16 when adding to buffer */
733 for (u_len = 0; test->utf16[u_len]; u_len++)
739 hb_buffer_add_utf16 (b, test->utf16, u_len, 1, u_len - 2);

Completed in 520 milliseconds

123