/external/chromium_org/ppapi/tests/ |
D | test_char_set.cc | 39 std::vector<uint16_t> utf16; in TestUTF16ToCharSetDeprecated() local 40 utf16.push_back(0); in TestUTF16ToCharSetDeprecated() 44 instance_->pp_instance(), &utf16[0], 0, "latin1", in TestUTF16ToCharSetDeprecated() 53 utf16 = UTF8ToUTF16(utf8source); in TestUTF16ToCharSetDeprecated() 55 instance_->pp_instance(), &utf16[0], static_cast<uint32_t>(utf16.size()), in TestUTF16ToCharSetDeprecated() 61 utf16 = UTF8ToUTF16("h\xe4\xbd\xa0i"); in TestUTF16ToCharSetDeprecated() 66 instance_->pp_instance(), &utf16[0], static_cast<uint32_t>(utf16.size()), in TestUTF16ToCharSetDeprecated() 73 instance_->pp_instance(), &utf16[0], static_cast<uint32_t>(utf16.size()), in TestUTF16ToCharSetDeprecated() 82 instance_->pp_instance(), &utf16[0], static_cast<uint32_t>(utf16.size()), in TestUTF16ToCharSetDeprecated() 90 utf16.clear(); in TestUTF16ToCharSetDeprecated() [all …]
|
/external/chromium_org/base/strings/ |
D | utf_string_conversions.cc | 88 std::wstring UTF16ToWide(const string16& utf16) { in UTF16ToWide() argument 89 return utf16; in UTF16ToWide() 116 std::wstring UTF16ToWide(const string16& utf16) { in UTF16ToWide() argument 118 UTF16ToWide(utf16.data(), utf16.length(), &ret); in UTF16ToWide() 146 std::string UTF16ToUTF8(const string16& utf16) { in UTF16ToUTF8() argument 150 UTF16ToUTF8(utf16.data(), utf16.length(), &ret); in UTF16ToUTF8() 169 std::string UTF16ToUTF8(const string16& utf16) { in UTF16ToUTF8() argument 170 return WideToUTF8(utf16); in UTF16ToUTF8() 185 std::string UTF16ToASCII(const string16& utf16) { in UTF16ToASCII() argument 186 DCHECK(IsStringASCII(utf16)) << UTF16ToUTF8(utf16); in UTF16ToASCII() [all …]
|
D | latin1_string_conversions.cc | 11 const char16* utf16) { in Latin1OrUTF16ToUTF16() argument 16 return string16(utf16, utf16 + length); in Latin1OrUTF16ToUTF16()
|
D | utf_offset_string_conversions.cc | 247 const base::StringPiece16& utf16, in UTF16ToUTF8AndAdjustOffsets() argument 251 LimitOffset<base::StringPiece16>(utf16.length())); in UTF16ToUTF8AndAdjustOffsets() 253 PrepareForUTF8Output(utf16.data(), utf16.length(), &result); in UTF16ToUTF8AndAdjustOffsets() 255 ConvertUnicode(utf16.data(), utf16.length(), &result, &adjustments); in UTF16ToUTF8AndAdjustOffsets()
|
D | utf_string_conversions.h | 34 BASE_EXPORT std::wstring UTF16ToWide(const string16& utf16); 40 BASE_EXPORT std::string UTF16ToUTF8(const string16& utf16); 49 BASE_EXPORT std::string UTF16ToASCII(const string16& utf16);
|
/external/chromium_org/base/i18n/ |
D | icu_string_conversions.cc | 149 bool UTF16ToCodepage(const string16& utf16, in UTF16ToCodepage() argument 160 return ConvertFromUTF16(converter, utf16.c_str(), in UTF16ToCodepage() 161 static_cast<int>(utf16.length()), on_error, encoded); in UTF16ToCodepage() 167 string16* utf16) { in CodepageToUTF16() argument 168 utf16->clear(); in CodepageToUTF16() 192 utf16->clear(); // Make sure the output is empty on error. in CodepageToUTF16() 196 utf16->assign(buffer.get(), actual_size); in CodepageToUTF16() 220 std::vector<UChar> utf16(wide.length() * 2 + 1); in WideToCodepage() 221 u_strFromUTF32(&utf16[0], utf16.size(), &utf16_len, in WideToCodepage() 226 return ConvertFromUTF16(converter, &utf16[0], utf16_len, on_error, encoded); in WideToCodepage() [all …]
|
/external/chromium_org/device/usb/ |
D | usb_service_unittest.cc | 33 base::string16 utf16; in TEST_F() local 34 ASSERT_TRUE(device->GetManufacturer(&utf16)); in TEST_F() 35 ASSERT_EQ("Google Inc.", base::UTF16ToUTF8(utf16)); in TEST_F() 37 ASSERT_TRUE(device->GetProduct(&utf16)); in TEST_F() 38 ASSERT_EQ("Test Gadget (default state)", base::UTF16ToUTF8(utf16)); in TEST_F() 40 ASSERT_TRUE(device->GetSerialNumber(&utf16)); in TEST_F() 41 ASSERT_EQ(gadget->GetSerialNumber(), base::UTF16ToUTF8(utf16)); in TEST_F()
|
/external/chromium_org/net/proxy/ |
D | proxy_resolver_script_data.cc | 22 const base::string16& utf16) { in FromUTF16() argument 23 return new ProxyResolverScriptData(TYPE_SCRIPT_CONTENTS, GURL(), utf16); in FromUTF16() 39 const base::string16& ProxyResolverScriptData::utf16() const { in utf16() function in net::ProxyResolverScriptData 56 return utf16() == other->utf16(); in Equals() 68 const base::string16& utf16) in ProxyResolverScriptData() argument 71 utf16_(utf16) { in ProxyResolverScriptData()
|
D | proxy_resolver_script_data.h | 36 const base::string16& utf16); 50 const base::string16& utf16() const; 63 const base::string16& utf16);
|
/external/chromium_org/third_party/harfbuzz-ng/src/ |
D | hb-icu.cc | 189 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local 196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); in hb_icu_unicode_compose() 198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); in hb_icu_unicode_compose() 202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose() 248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local 259 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err); in hb_icu_unicode_decompose() 263 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose() 318 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose_compatibility() local 327 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), u, err); in hb_icu_unicode_decompose_compatibility() 333 …len = unorm_normalize (utf16, len, UNORM_NFKD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose_compatibility()
|
/external/harfbuzz_ng/src/ |
D | hb-icu.cc | 189 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local 196 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); in hb_icu_unicode_compose() 198 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); in hb_icu_unicode_compose() 202 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose() 248 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local 259 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err); in hb_icu_unicode_decompose() 263 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose() 318 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose_compatibility() local 327 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), u, err); in hb_icu_unicode_decompose_compatibility() 333 …len = unorm_normalize (utf16, len, UNORM_NFKD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose_compatibility()
|
/external/chromium_org/third_party/sqlite/src/tool/ |
D | speedtest16.c | 67 void *utf16; in prepareAndRun() local 75 utf16 = asciiToUtf16le(zSql); in prepareAndRun() 77 rc = sqlite3_prepare16_v2(db, utf16, -1, &pStmt, &stmtTail); in prepareAndRun() 95 free(utf16); in prepareAndRun() 99 void *utf16; in main() local 127 utf16 = asciiToUtf16le(argv[1]); in main() 129 rc = sqlite3_open16(utf16, &db); in main() 133 free(utf16); in main()
|
/external/chromium_org/extensions/browser/api/usb_private/ |
D | usb_private_api.cc | 122 base::string16 utf16; in AsyncWorkStart() local 123 if (device->GetManufacturer(&utf16)) { in AsyncWorkStart() 125 new std::string(base::UTF16ToUTF8(utf16))); in AsyncWorkStart() 128 if (device->GetProduct(&utf16)) { in AsyncWorkStart() 129 device_info.product_string.reset(new std::string(base::UTF16ToUTF8(utf16))); in AsyncWorkStart() 132 if (device->GetSerialNumber(&utf16)) { in AsyncWorkStart() 133 device_info.serial_string.reset(new std::string(base::UTF16ToUTF8(utf16))); in AsyncWorkStart()
|
/external/chromium_org/third_party/icu/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 210 UChar utf16[2]; in SpanUTF16() local 214 utf16[0]=(UChar)c; in SpanUTF16() 215 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 220 utf16[0]=(UChar)c; in SpanUTF16() 222 utf16[1]=(UChar)c2; in SpanUTF16() 223 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 261 UChar utf16[2]; in SpanBackUTF16() local 265 utf16[0]=(UChar)c; in SpanBackUTF16() 266 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) { in SpanBackUTF16() 271 utf16[0]=(UChar)c; in SpanBackUTF16() [all …]
|
/external/icu/icu4c/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 210 UChar utf16[2]; in SpanUTF16() local 214 utf16[0]=(UChar)c; in SpanUTF16() 215 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 220 utf16[0]=(UChar)c; in SpanUTF16() 222 utf16[1]=(UChar)c2; in SpanUTF16() 223 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 261 UChar utf16[2]; in SpanBackUTF16() local 265 utf16[0]=(UChar)c; in SpanBackUTF16() 266 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) { in SpanBackUTF16() 271 utf16[0]=(UChar)c; in SpanBackUTF16() [all …]
|
/external/chromium_org/ppapi/shared_impl/private/ |
D | ppb_char_set_shared.cc | 62 const uint16_t* utf16, in UTF16ToCharSetDeprecated() argument 73 UTF16ToCharSet(utf16, utf16_len, output_char_set, on_error, NULL, in UTF16ToCharSetDeprecated() 81 PP_Bool result = UTF16ToCharSet(utf16, utf16_len, output_char_set, on_error, in UTF16ToCharSetDeprecated() 94 const uint16_t utf16[], in UTF16ToCharSet() argument 100 if (!utf16 || !output_char_set || !output_length) { in UTF16ToCharSet() 156 reinterpret_cast<const UChar*>(utf16), utf16_len, &status)); in UTF16ToCharSet()
|
/external/chromium_org/ppapi/thunk/ |
D | ppb_char_set_thunk.cc | 16 const uint16_t* utf16, uint32_t utf16_len, in UTF16ToCharSetDeprecated() argument 27 utf16, utf16_len, output_char_set, on_error, output_length); in UTF16ToCharSetDeprecated() 30 PP_Bool UTF16ToCharSet(const uint16_t utf16[], in UTF16ToCharSet() argument 47 utf16, utf16_len, output_char_set, on_error, in UTF16ToCharSet()
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | mallocG.test | 56 proc utf16 {utf8} { 57 set utf16 [encoding convertto unicode $utf8] 58 append utf16 "\x00\x00" 59 return $utf16 63 set rc [sqlite3_complete16 [utf16 "SELECT * FROM t1;"]]
|
D | enc3.test | 21 ifcapable {utf16} { 55 ifcapable {bloblit && utf16} { 82 ifcapable {utf16 && shared_cache} { 98 ATTACH 'test.db' AS utf16; 99 SELECT 1 FROM utf16.sqlite_master LIMIT 1;
|
/external/skia/include/core/ |
D | SkUtils.h | 74 int SkUTF16_CountUnichars(const uint16_t utf16[]); 75 int SkUTF16_CountUnichars(const uint16_t utf16[], int numberOf16BitValues); 80 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = NULL); 82 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
|
/external/chromium_org/third_party/skia/include/core/ |
D | SkUtils.h | 74 int SkUTF16_CountUnichars(const uint16_t utf16[]); 75 int SkUTF16_CountUnichars(const uint16_t utf16[], int numberOf16BitValues); 80 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = NULL); 82 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
|
/external/chromium_org/third_party/cython/src/Cython/Compiler/ |
D | StringEncoding.py | 292 utf16, utf32 = [], s 296 utf16.append(high + 0xD800) 297 utf16.append(low + 0xDC00) 299 utf16.append(code_point) 301 utf16, utf32 = s, [] 309 if utf16 == utf32: 310 utf16 = [] 311 return ",".join(map(unicode, utf16)), ",".join(map(unicode, utf32))
|
/external/chromium_org/content/common/ |
D | gamepad_param_traits.cc | 21 base::string16 utf16; in LogWebUCharString() local 22 utf16.reserve(array_size); in LogWebUCharString() 24 utf16[i] = web_string[i]; in LogWebUCharString() 26 log->append(base::UTF16ToUTF8(utf16)); in LogWebUCharString()
|
/external/chromium_org/url/ |
D | url_canon_query.cc | 77 RawCanonOutputW<1024> utf16; in RunConverter() local 78 ConvertUTF8ToUTF16(&spec[query.begin], query.len, &utf16); in RunConverter() 79 converter->ConvertFromUTF16(utf16.data(), utf16.length(), output); in RunConverter()
|
/external/skia/src/core/ |
D | SkUtils.cpp | 398 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues, in SkUTF16_ToUTF8() argument 405 SkASSERT(utf16 != NULL); in SkUTF16_ToUTF8() 407 const uint16_t* stop = utf16 + numberOf16BitValues; in SkUTF16_ToUTF8() 411 while (utf16 < stop) { in SkUTF16_ToUTF8() 412 size += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), NULL); in SkUTF16_ToUTF8() 416 while (utf16 < stop) { in SkUTF16_ToUTF8() 417 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8); in SkUTF16_ToUTF8()
|