Searched refs:utf8 (Results 1 – 9 of 9) sorted by relevance
/system/core/base/ |
D | utf8.cpp | 44 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) { in WideToUTF8() argument 45 utf8->clear(); in WideToUTF8() 71 utf8->resize(chars_required); in WideToUTF8() 74 &(*utf8)[0], chars_required, NULL, in WideToUTF8() 80 utf8->clear(); in WideToUTF8() 87 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) { in WideToUTF8() argument 89 return WideToUTF8(utf16, wcslen(utf16), utf8); in WideToUTF8() 92 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) { in WideToUTF8() argument 95 return WideToUTF8(utf16.c_str(), utf16.length(), utf8); in WideToUTF8() 99 static bool UTF8ToWideWithFlags(const char* utf8, const size_t size, std::wstring* utf16, in UTF8ToWideWithFlags() argument [all …]
|
D | utf8_test.cpp | 75 static std::wstring UTF8ToWide(const std::string& utf8) { in UTF8ToWide() argument 77 EXPECT_TRUE(UTF8ToWide(utf8, &utf16)); in UTF8ToWide() 82 std::string utf8; in WideToUTF8() local 83 EXPECT_TRUE(WideToUTF8(utf16, &utf8)); in WideToUTF8() 84 return utf8; in WideToUTF8() 123 std::ostringstream utf8; in TEST() local 124 utf8 << WideToUTF8(kConvertRoundtripCases[i]); in TEST() 126 wide << UTF8ToWide(utf8.str()); in TEST() 143 const char* utf8; in TEST() member 174 const bool success = UTF8ToWide(convert_cases[i].utf8, in TEST() [all …]
|
D | Android.bp | 87 "utf8.cpp",
|
D | file.cpp | 177 using namespace android::base::utf8;
|
/system/core/base/include/android-base/ |
D | 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); 88 namespace utf8 {
|
/system/core/libutils/ |
D | Unicode_test.cpp | 185 static char utf8[] = "\xc4\x00\x00\x00"; in TEST_F() local 186 ASSERT_DEATH(utf8_to_utf16_length((uint8_t *) utf8, strlen(utf8), in TEST_F()
|
/system/core/adb/client/ |
D | fastdeploy.cpp | 153 std::string utf8; in get_string_from_utf16() local 154 utf8.resize(utf8_length); in get_string_from_utf16() 155 utf16_to_utf8(input, input_len, &*utf8.begin(), utf8_length + 1); in get_string_from_utf16() 156 return utf8; in get_string_from_utf16()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 2395 const char* utf8; in _console_write_utf8() local 2403 utf8 = buf; in _console_write_utf8() 2412 utf8 = combined_buffer.data(); in _console_write_utf8() 2413 utf8_size = internal::ParseCompleteUTF8(utf8, utf8 + combined_buffer.size(), in _console_write_utf8() 2424 (void)android::base::UTF8ToWide(utf8, utf8_size, &utf16); in _console_write_utf8()
|
/system/core/libziparchive/ |
D | zip_archive.cc | 489 const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY | O_CLOEXEC, 0); in OpenArchive()
|