Searched refs:utf8 (Results 1 – 10 of 10) sorted by relevance
/system/libbase/ |
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 | 103 "utf8.cpp",
|
D | file.cpp | 215 using namespace android::base::utf8;
|
/system/libbase/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/tools/aidl/ |
D | aidl_to_cpp.cpp | 70 const bool utf8 = raw_type.IsUtf8InCpp(); in RawParcelMethod() local 85 if (utf8) { in RawParcelMethod() 100 if (utf8) { in RawParcelMethod() 274 bool utf8 = raw_type.IsUtf8InCpp(); in AddHeaders() local 290 headers.insert(utf8 ? "string" : "utils/String16.h"); in AddHeaders()
|
/system/core/adb/client/ |
D | fastdeploy.cpp | 145 std::string utf8; in get_string_from_utf16() local 146 utf8.resize(utf8_length); in get_string_from_utf16() 147 utf16_to_utf8(input, input_len, &*utf8.begin(), utf8_length + 1); in get_string_from_utf16() 148 return utf8; in get_string_from_utf16()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 2496 const char* utf8; in _console_write_utf8() local 2504 utf8 = buf; in _console_write_utf8() 2513 utf8 = combined_buffer.data(); in _console_write_utf8() 2514 utf8_size = internal::ParseCompleteUTF8(utf8, utf8 + combined_buffer.size(), in _console_write_utf8() 2525 (void)android::base::UTF8ToWide(utf8, utf8_size, &utf16); in _console_write_utf8()
|
/system/libziparchive/ |
D | zip_archive.cc | 592 const int fd = ::android::base::utf8::open(fileName, O_RDONLY | O_BINARY | O_CLOEXEC, 0); in OpenArchive()
|