Searched refs:WideToUTF8 (Results 1 - 7 of 7) sorted by relevance

/system/core/base/include/android-base/
H A Dutf8.h35 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8);
39 bool WideToUTF8(const wchar_t* utf16, std::string* utf8);
43 bool WideToUTF8(const std::wstring& utf16, std::string* utf8);
/system/core/base/
H A Dutf8.cpp42 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) { function in namespace:android::base
85 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) { function in namespace:android::base
87 return WideToUTF8(utf16, wcslen(utf16), utf8);
90 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) { function in namespace:android::base
93 return WideToUTF8(utf16.c_str(), utf16.length(), utf8);
H A Dutf8_test.cpp64 // UTF8ToWide() and WideToUTF8() that don't return success/failure, so these are
76 static std::string WideToUTF8(const std::wstring& utf16) { function in namespace:android::base
78 EXPECT_TRUE(WideToUTF8(utf16, &utf8));
119 utf8 << WideToUTF8(kConvertRoundtripCases[i]);
132 EXPECT_EQ(empty, WideToUTF8(wempty));
238 const bool success = WideToUTF8(convert_cases[i].utf16,
243 // that because our implementation of WideToUTF8() does not guarantee to
279 WideToUTF8(convert_cases[i].utf32,
305 return WideToUTF8(utf16);
339 return WideToUTF8(utf1
[all...]
H A Derrors_windows.cpp50 if (!android::base::WideToUTF8(msgbuf, &msg)) {
/system/core/adb/client/
H A Dmain.cpp52 if (!android::base::WideToUTF8(temp_path, &temp_path_utf8)) {
/system/core/adb/
H A Dadb_utils.cpp257 if (!android::base::WideToUTF8(path, &home_str)) {
H A Dsysdeps_win32.cpp2226 // android::base::WideToUTF8() which converts UTF-16 to UTF-8. This is used by the
2266 if (!android::base::WideToUTF8(argv[i], &arg_narrow)) {
2324 if (!android::base::WideToUTF8(went->d_name, &name_utf8)) {
2736 if (!android::base::WideToUTF8(*env, equal - *env, &name_utf8)) {
2744 if (!android::base::WideToUTF8(equal + 1, &value_utf8)) {
2780 const bool narrow_result = android::base::WideToUTF8(wbuf, &buf_utf8);

Completed in 75 milliseconds