/external/libchrome/base/strings/ |
D | utf_string_conversions.cc | 109 std::wstring UTF16ToWide(const string16& utf16) { in UTF16ToWide() argument 110 return utf16; in UTF16ToWide() 137 std::wstring UTF16ToWide(const string16& utf16) { in UTF16ToWide() argument 139 UTF16ToWide(utf16.data(), utf16.length(), &ret); in UTF16ToWide() 182 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8() argument 183 if (IsStringASCII(utf16)) { in UTF16ToUTF8() 184 return std::string(utf16.begin(), utf16.end()); in UTF16ToUTF8() 190 UTF16ToUTF8(utf16.data(), utf16.length(), &ret); in UTF16ToUTF8() 209 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8() argument 210 if (IsStringASCII(utf16)) in UTF16ToUTF8() [all …]
|
D | utf_string_conversions.h | 36 BASE_EXPORT std::wstring UTF16ToWide(const string16& utf16); 42 BASE_EXPORT std::string UTF16ToUTF8(StringPiece16 utf16); 50 BASE_EXPORT std::string UTF16ToASCII(StringPiece16 utf16);
|
D | utf_string_conversions_unittest.cc | 128 const wchar_t* utf16; in TEST() member 148 WideToUTF8(test.utf16, wcslen(test.utf16), &converted)); in TEST()
|
D | sys_string_conversions.h | 66 BASE_EXPORT CFStringRef SysUTF16ToCFStringRef(const string16& utf16); 70 BASE_EXPORT NSString* SysUTF16ToNSString(const string16& utf16);
|
D | sys_string_conversions_mac.mm | 151 CFStringRef SysUTF16ToCFStringRef(const string16& utf16) { 152 return STLStringToCFStringWithEncodingsT(utf16, kMediumStringEncoding); 160 NSString* SysUTF16ToNSString(const string16& utf16) { 162 SysUTF16ToCFStringRef(utf16));
|
/external/harfbuzz_ng/src/ |
D | hb-icu.cc | 190 UChar utf16[4], normalized[5]; in hb_icu_unicode_compose() local 197 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err); in hb_icu_unicode_compose() 199 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err); in hb_icu_unicode_compose() 203 len = unorm_normalize (utf16, len, UNORM_NFC, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_compose() 249 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose() local 260 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err); in hb_icu_unicode_decompose() 264 len = unorm_normalize (utf16, len, UNORM_NFD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose() 319 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; in hb_icu_unicode_decompose_compatibility() local 328 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), u, err); in hb_icu_unicode_decompose_compatibility() 334 …len = unorm_normalize (utf16, len, UNORM_NFKD, 0, normalized, ARRAY_LENGTH (normalized), &icu_err); in hb_icu_unicode_decompose_compatibility()
|
/external/icu/icu4c/source/test/perf/unisetperf/ |
D | unisetperf.cpp | 213 UChar utf16[2]; in SpanUTF16() local 217 utf16[0]=(UChar)c; in SpanUTF16() 218 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 223 utf16[0]=(UChar)c; in SpanUTF16() 225 utf16[1]=(UChar)c2; in SpanUTF16() 226 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) { in SpanUTF16() 264 UChar utf16[2]; in SpanBackUTF16() local 268 utf16[0]=(UChar)c; in SpanBackUTF16() 269 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) { in SpanBackUTF16() 274 utf16[0]=(UChar)c; in SpanBackUTF16() [all …]
|
/external/skia/src/core/ |
D | SkUtils.h | 85 int SkUTF16_CountUnichars(const uint16_t utf16[]); 86 int SkUTF16_CountUnichars(const uint16_t utf16[], int numberOf16BitValues); 91 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = NULL); 93 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
|
D | SkUtils.cpp | 333 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues, in SkUTF16_ToUTF8() argument 340 SkASSERT(utf16 != nullptr); in SkUTF16_ToUTF8() 342 const uint16_t* stop = utf16 + numberOf16BitValues; in SkUTF16_ToUTF8() 346 while (utf16 < stop) { in SkUTF16_ToUTF8() 347 size += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), nullptr); in SkUTF16_ToUTF8() 351 while (utf16 < stop) { in SkUTF16_ToUTF8() 352 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8); in SkUTF16_ToUTF8()
|
/external/ImageMagick/coders/ |
D | emf.c | 179 static size_t UTF8ToUTF16(const unsigned char *utf8,wchar_t *utf16) in UTF8ToUTF16() argument 184 if (utf16 != (wchar_t *) NULL) in UTF8ToUTF16() 195 q=utf16; in UTF8ToUTF16() 230 return(q-utf16); in UTF8ToUTF16() 268 *utf16; in ConvertUTF8ToUTF16() local 280 utf16=(wchar_t *) AcquireQuantumMemory(length+1,sizeof(*utf16)); in ConvertUTF8ToUTF16() 281 if (utf16 == (wchar_t *) NULL) in ConvertUTF8ToUTF16() 284 utf16[i]=source[i]; in ConvertUTF8ToUTF16() 285 return(utf16); in ConvertUTF8ToUTF16() 287 utf16=(wchar_t *) AcquireQuantumMemory(length+1,sizeof(*utf16)); in ConvertUTF8ToUTF16() [all …]
|
D | pdf.c | 1000 static size_t UTF8ToUTF16(const unsigned char *utf8,wchar_t *utf16) in UTF8ToUTF16() argument 1005 if (utf16 != (wchar_t *) NULL) in UTF8ToUTF16() 1016 q=utf16; in UTF8ToUTF16() 1051 return(q-utf16); in UTF8ToUTF16() 1086 *utf16; in ConvertUTF8ToUTF16() local 1098 utf16=(wchar_t *) AcquireQuantumMemory(*length+1,sizeof(*utf16)); in ConvertUTF8ToUTF16() 1099 if (utf16 == (wchar_t *) NULL) in ConvertUTF8ToUTF16() 1102 utf16[i]=source[i]; in ConvertUTF8ToUTF16() 1103 return(utf16); in ConvertUTF8ToUTF16() 1105 utf16=(wchar_t *) AcquireQuantumMemory(*length+1,sizeof(*utf16)); in ConvertUTF8ToUTF16() [all …]
|
/external/icu/icu4c/source/samples/ucnv/ |
D | Makefile | 23 CLEANFILES += *.out data40.utf16 data41.utf16
|
/external/skia/src/pdf/ |
D | SkPDFUtils.h | 105 uint16_t utf16[2] = {0, 0}; in WriteUTF16beHex() local 106 size_t len = SkUTF16_FromUnichar(utf32, utf16); in WriteUTF16beHex() 108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]); in WriteUTF16beHex() 110 SkPDFUtils::WriteUInt16BE(wStream, utf16[1]); in WriteUTF16beHex()
|
/external/icu/icu4c/source/test/cintltst/ |
D | ucnvseltst.c | 447 static UChar utf16[10000]; in TestSelector() local 472 u_strFromUTF8(utf16, UPRV_LENGTHOF(utf16), &length16, s, length8, &status); in TestSelector() 482 verifyResult(ucnvsel_selectForString(sel_rt, utf16, length16, &status), manual_rt); in TestSelector() 483 verifyResult(ucnvsel_selectForString(sel_fb, utf16, length16, &status), manual_fb); in TestSelector() 485 verifyResult(ucnvsel_selectForString(sel_rt, utf16, -1, &status), manual_rt); in TestSelector() 486 verifyResult(ucnvsel_selectForString(sel_fb, utf16, -1, &status), manual_fb); in TestSelector()
|
/external/llvm/lib/Support/Windows/ |
D | WindowsSupport.h | 220 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16); 221 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, 224 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
|
D | Path.inc | 934 llvm::SmallVectorImpl<wchar_t> &utf16) { 937 utf8.size(), utf16.begin(), 0); 942 utf16.reserve(len + 1); 943 utf16.set_size(len); 946 utf8.size(), utf16.begin(), utf16.size()); 952 // Make utf16 null terminated. 953 utf16.push_back(0); 954 utf16.pop_back(); 960 std::error_code UTF16ToCodePage(unsigned codepage, const wchar_t *utf16, 965 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.begin(), [all …]
|
/external/v8/tools/clang/plugins/ |
D | ChromeClassTester.cpp | 145 std::wstring utf16(size_needed, L'\0'); in InBannedDirectory() local 147 &utf16[0], size_needed); in InBannedDirectory() 149 size_needed = GetFullPathNameW(utf16.data(), 0, nullptr, nullptr); in InBannedDirectory() 151 GetFullPathNameW(utf16.data(), full_utf16.size(), &full_utf16[0], nullptr); in InBannedDirectory()
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/Windows/ |
D | Path.inc | 916 llvm::SmallVectorImpl<wchar_t> &utf16) { 919 utf8.size(), utf16.begin(), 0); 924 utf16.reserve(len + 1); 925 utf16.set_size(len); 928 utf8.size(), utf16.begin(), utf16.size()); 934 // Make utf16 null terminated. 935 utf16.push_back(0); 936 utf16.pop_back(); 942 std::error_code UTF16ToCodePage(unsigned codepage, const wchar_t *utf16, 947 int len = ::WideCharToMultiByte(codepage, 0, utf16, utf16_len, utf8.begin(), [all …]
|
D | WindowsSupport.h | 254 std::error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16); 255 std::error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, 258 std::error_code UTF16ToCurCP(const wchar_t *utf16, size_t utf16_len,
|
/external/swiftshader/third_party/LLVM/lib/Support/Windows/ |
D | PathV2.inc | 44 error_code UTF8ToUTF16(StringRef utf8, SmallVectorImpl<wchar_t> &utf16) { 47 utf16.begin(), 0); 52 utf16.reserve(len + 1); 53 utf16.set_size(len); 57 utf16.begin(), utf16.size()); 62 // Make utf16 null terminated. 63 utf16.push_back(0); 64 utf16.pop_back(); 69 error_code UTF16ToUTF8(const wchar_t *utf16, size_t utf16_len, 73 utf16, utf16_len, [all …]
|
/external/vboot_reference/cgpt/ |
D | cgpt_common.c | 439 int UTF16ToUTF8(const uint16_t *utf16, unsigned int maxinput, in UTF16ToUTF8() argument 447 if (!utf16 || !maxinput || !utf8 || !maxoutput) in UTF16ToUTF8() 453 s16idx < maxinput && utf16[s16idx] && maxoutput; in UTF16ToUTF8() 455 uint16_t codeunit = le16toh(utf16[s16idx]); in UTF16ToUTF8() 528 int UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput) in UTF8ToUTF16() argument 536 if (!utf8 || !utf16 || !maxoutput) in UTF8ToUTF16() 602 utf16[s16idx++] = code_point; in UTF8ToUTF16() 606 utf16[s16idx++] = 0xD800 | ((code_point >> 10) - 0x0040); in UTF8ToUTF16() 607 utf16[s16idx++] = 0xDC00 | (code_point & 0x03FF); in UTF8ToUTF16() 626 utf16[s16idx++] = 0; in UTF8ToUTF16()
|
D | cgpt.h | 131 int UTF16ToUTF8(const uint16_t *utf16, unsigned int maxinput, 141 int UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput);
|
/external/harfbuzz_ng/test/api/ |
D | test-buffer.c | 33 static const uint16_t utf16[8] = {'a', 'b', 0xD840, 0xDC00, 'd', 'e', 'f', 'g'}; variable 82 hb_buffer_add_utf16 (b, utf16, G_N_ELEMENTS (utf16), 1, G_N_ELEMENTS (utf16) - 2); in fixture_init() 710 const uint16_t utf16[8]; member 742 for (u_len = 0; test->utf16[u_len]; u_len++) in test_buffer_utf16_conversion() 748 hb_buffer_add_utf16 (b, test->utf16, u_len, 1, u_len - 2); in test_buffer_utf16_conversion()
|
/external/libchrome/base/files/ |
D | file_path.cc | 624 FilePath FilePath::FromUTF16Unsafe(StringPiece16 utf16) { in FromUTF16Unsafe() argument 626 return FilePath(UTF16ToUTF8(utf16)); in FromUTF16Unsafe() 628 return FilePath(SysWideToNativeMB(UTF16ToWide(utf16.as_string()))); in FromUTF16Unsafe() 657 FilePath FilePath::FromUTF16Unsafe(StringPiece16 utf16) { in FromUTF16Unsafe() argument 658 return FilePath(utf16); in FromUTF16Unsafe()
|
/external/python/cpython2/Modules/expat/ |
D | xmltok.c | 1251 unsigned short utf16[256]; member 1332 unsigned short c = uenc->utf16[(unsigned char)**fromP]; in unknown_toUtf16() 1365 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding() 1374 e->utf16[i] = 0; in XmlInitUnknownEncoding() 1384 e->utf16[i] = (unsigned short)(c == 0 ? 0xFFFF : c); in XmlInitUnknownEncoding() 1389 e->utf16[i] = 0xFFFF; in XmlInitUnknownEncoding() 1403 e->utf16[i] = (unsigned short)c; in XmlInitUnknownEncoding()
|