HomeSort by relevance Sort by last modified time
    Searched refs:utf16 (Results 1 - 25 of 121) sorted by null

1 2 3 4 5

  /external/icu/icu4c/source/samples/ucnv/
Makefile 23 CLEANFILES += *.out data40.utf16 data41.utf16
  /system/core/base/
utf8.cpp 44 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) {
63 const int chars_required = WideCharToMultiByte(CP_UTF8, flags, utf16, size,
73 const int result = WideCharToMultiByte(CP_UTF8, flags, utf16, size,
87 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) {
89 return WideToUTF8(utf16, wcslen(utf16), utf8);
92 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) {
95 return WideToUTF8(utf16.c_str(), utf16.length(), utf8);
99 static bool UTF8ToWideWithFlags(const char* utf8, const size_t size, std::wstring* utf16,
    [all...]
utf8_test.cpp 76 std::wstring utf16; local
77 EXPECT_TRUE(UTF8ToWide(utf8, &utf16));
78 return utf16;
81 static std::string WideToUTF8(const std::wstring& utf16) {
83 EXPECT_TRUE(WideToUTF8(utf16, &utf8));
207 const wchar_t* utf16; member in struct:android::base::WideToUTF8Case
243 const bool success = WideToUTF8(convert_cases[i].utf16,
244 wcslen(convert_cases[i].utf16),
309 static std::string UTF16ToUTF8(const string16& utf16) {
310 return WideToUTF8(utf16);
    [all...]
  /system/core/base/include/android-base/
utf8.h 37 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8);
41 bool WideToUTF8(const wchar_t* utf16, std::string* utf8);
45 bool WideToUTF8(const std::wstring& utf16, std::string* utf8);
49 bool UTF8ToWide(const char* utf8, const size_t size, std::wstring* utf16);
53 bool UTF8ToWide(const char* utf8, std::wstring* utf16);
57 bool UTF8ToWide(const std::string& utf8, std::wstring* utf16);
70 bool UTF8PathToWindowsLongPath(const char* utf8, std::wstring* utf16);
  /frameworks/base/libs/androidfw/
Util.cpp 51 std::u16string utf16; local
52 utf16.resize(utf16_length);
53 utf8_to_utf16(reinterpret_cast<const uint8_t*>(utf8.data()), utf8.length(), &*utf16.begin(),
55 return utf16;
58 std::string Utf16ToUtf8(const StringPiece16& utf16) {
59 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length());
66 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);
  /external/libchrome/base/strings/
utf_string_conversions.cc 109 std::wstring UTF16ToWide(const string16& utf16) {
110 return utf16;
137 std::wstring UTF16ToWide(const string16& utf16) {
139 UTF16ToWide(utf16.data(), utf16.length(), &ret);
145 // UTF16 <-> UTF8 --------------------------------------------------------------
182 std::string UTF16ToUTF8(StringPiece16 utf16) {
186 UTF16ToUTF8(utf16.data(), utf16.length(), &ret);
205 std::string UTF16ToUTF8(StringPiece16 utf16) {
    [all...]
utf_string_conversions.h 36 BASE_EXPORT std::wstring UTF16ToWide(const string16& utf16);
42 BASE_EXPORT std::string UTF16ToUTF8(StringPiece16 utf16);
44 // This converts an ASCII string, typically a hardcoded constant, to a UTF16
50 BASE_EXPORT std::string UTF16ToASCII(StringPiece16 utf16);
sys_string_conversions.h 66 BASE_EXPORT CFStringRef SysUTF16ToCFStringRef(const string16& utf16);
70 BASE_EXPORT NSString* SysUTF16ToNSString(const string16& utf16);
  /dalvik/libdex/
DexUtf.cpp 69 u2 utf16 = dexGetUtf16FromUtf8(pUtf8Ptr); local
72 switch (utf16 >> 8) {
75 return (utf16 > 0x00a0);
85 utf16 = dexGetUtf16FromUtf8(pUtf8Ptr);
86 return (utf16 >= 0xdc00) && (utf16 <= 0xdfff);
98 switch (utf16 & 0xfff8) {
  /external/skia/src/core/
SkUtils.h 48 int SkUTF16_CountUnichars(const void* utf16, size_t byteLength);
82 int SkUTF16_CountUnichars(const uint16_t utf16[]);
87 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = nullptr);
89 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
SkUtils.cpp 349 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
356 SkASSERT(utf16 != nullptr);
358 const uint16_t* stop = utf16 + numberOf16BitValues;
362 while (utf16 < stop) {
363 size += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), nullptr);
367 while (utf16 < stop) {
368 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8);
  /external/skqp/src/core/
SkUtils.h 48 int SkUTF16_CountUnichars(const void* utf16, size_t byteLength);
82 int SkUTF16_CountUnichars(const uint16_t utf16[]);
87 size_t SkUTF16_FromUnichar(SkUnichar uni, uint16_t utf16[] = nullptr);
89 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
SkUtils.cpp 349 size_t SkUTF16_ToUTF8(const uint16_t utf16[], int numberOf16BitValues,
356 SkASSERT(utf16 != nullptr);
358 const uint16_t* stop = utf16 + numberOf16BitValues;
362 while (utf16 < stop) {
363 size += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), nullptr);
367 while (utf16 < stop) {
368 utf8 += SkUTF8_FromUnichar(SkUTF16_NextUnichar(&utf16), utf8);
  /external/harfbuzz_ng/src/
hb-icu.cc 39 #include <unicode/utf16.h>
190 UChar utf16[4], normalized[5]; local
197 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), a, err);
199 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), b, err);
203 len = unorm2_normalize (unorm2_getNFCInstance (&icu_err), utf16, len, normalized, ARRAY_LENGTH (normalized), &icu_err);
249 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
260 U16_APPEND (utf16, len, ARRAY_LENGTH (utf16), ab, err)
319 UChar utf16[2], normalized[2 * HB_UNICODE_MAX_DECOMPOSITION_LEN + 1]; local
    [all...]
  /external/oj-libjdwp/src/share/npt/
utf.h 61 (struct UtfInst *ui, jchar *utf16, int len,
64 (struct UtfInst *ui, jchar *utf16, int len,
npt.h 72 (struct UtfInst *utf, jchar *utf16, int len,
75 (struct UtfInst *utf, jchar *utf16, int len,
  /prebuilts/go/darwin-x86/src/unicode/utf16/
export_test.go 5 package utf16 package
  /prebuilts/go/linux-x86/src/unicode/utf16/
export_test.go 5 package utf16 package
  /frameworks/base/libs/hwui/tests/common/
TestUtils.cpp 124 auto utf16 = asciiToUtf16(text); local
127 canvas->drawText(utf16.get(), 0, strlen(text), strlen(text), x, y, minikin::Bidi::LTR,
133 auto utf16 = asciiToUtf16(text); local
136 canvas->drawTextOnPath(utf16.get(), strlen(text), minikin::Bidi::LTR, path, 0, 0, glyphPaint,
161 std::unique_ptr<uint16_t[]> utf16(new uint16_t[length]);
163 utf16.get()[i] = str[i];
165 return utf16;
  /external/icu/icu4c/source/test/perf/unisetperf/
unisetperf.cpp 213 UChar utf16[2]; local
217 utf16[0]=(UChar)c;
218 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) {
223 utf16[0]=(UChar)c;
225 utf16[1]=(UChar)c2;
226 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) {
264 UChar utf16[2]; local
268 utf16[0]=(UChar)c;
269 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) {
274 utf16[0]=(UChar)c
    [all...]
  /external/skia/src/pdf/
SkPDFUtils.h 105 uint16_t utf16[2] = {0, 0}; local
106 size_t len = SkUTF16_FromUnichar(utf32, utf16);
108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]);
110 SkPDFUtils::WriteUInt16BE(wStream, utf16[1]);
  /external/skqp/src/pdf/
SkPDFUtils.h 105 uint16_t utf16[2] = {0, 0}; local
106 size_t len = SkUTF16_FromUnichar(utf32, utf16);
108 SkPDFUtils::WriteUInt16BE(wStream, utf16[0]);
110 SkPDFUtils::WriteUInt16BE(wStream, utf16[1]);
  /prebuilts/go/darwin-x86/src/syscall/
env_windows.go 10 "unicode/utf16"
27 return string(utf16.Decode(b[:n])), true
83 r = append(r, string(utf16.Decode(p[from:i])))
  /prebuilts/go/linux-x86/src/syscall/
env_windows.go 10 "unicode/utf16"
27 return string(utf16.Decode(b[:n])), true
83 r = append(r, string(utf16.Decode(p[from:i])))
  /frameworks/base/tools/aapt2/util/
Util.cpp 307 std::u16string utf16; local
308 utf16.resize(utf16_length);
310 &*utf16.begin(), utf16_length + 1);
311 return utf16;
314 std::string Utf16ToUtf8(const StringPiece16& utf16) {
315 ssize_t utf8_length = utf16_to_utf8_length(utf16.data(), utf16.length());
322 utf16_to_utf8(utf16.data(), utf16.length(), &*utf8.begin(), utf8_length + 1);

Completed in 677 milliseconds

1 2 3 4 5