Searched refs:WideToUTF8 (Results 1 – 7 of 7) sorted by relevance
/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);
|
/system/libbase/ |
D | utf8.cpp | 44 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) { in WideToUTF8() function 87 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) { in WideToUTF8() function 89 return WideToUTF8(utf16, wcslen(utf16), utf8); in WideToUTF8() 92 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) { in WideToUTF8() function 95 return WideToUTF8(utf16.c_str(), utf16.length(), utf8); in WideToUTF8()
|
D | utf8_test.cpp | 81 static std::string WideToUTF8(const std::wstring& utf16) { in WideToUTF8() function 83 EXPECT_TRUE(WideToUTF8(utf16, &utf8)); in WideToUTF8() 124 utf8 << WideToUTF8(kConvertRoundtripCases[i]); in TEST() 137 EXPECT_EQ(empty, WideToUTF8(wempty)); in TEST() 243 const bool success = WideToUTF8(convert_cases[i].utf16, in TEST() 284 WideToUTF8(convert_cases[i].utf32, in TEST() 310 return WideToUTF8(utf16); in UTF16ToUTF8() 344 return WideToUTF8(utf16); in SysWideToUTF8()
|
D | errors_windows.cpp | 50 if (!android::base::WideToUTF8(msgbuf, &msg)) { in SystemErrorCodeToString()
|
D | file.cpp | 71 CHECK(android::base::WideToUTF8(path, &path_utf8)) << "path can't be converted to utf8"; in mkstemp() 92 CHECK(android::base::WideToUTF8(path, &path_utf8)) << "path can't be converted to utf8"; in mkdtemp() 123 CHECK(android::base::WideToUTF8(tmp_dir_w, &tmp_dir)) << "path can't be converted to utf8"; in GetSystemTempDir()
|
/system/core/adb/ |
D | adb_utils.cpp | 284 if (!android::base::WideToUTF8(path, &home_str)) { in adb_get_homedir_path() 340 if (!android::base::WideToUTF8(temp_path, &temp_path_utf8)) { in GetLogFilePath()
|
D | sysdeps_win32.cpp | 1036 if (!android::base::WideToUTF8(buffer, &name_utf8)) { in adb_gethostname() 1053 if (!android::base::WideToUTF8(buffer, &login)) { in adb_getlogin_r() 2276 if (!android::base::WideToUTF8(argv[i], &arg_narrow)) { in NarrowArgs() 2334 if (!android::base::WideToUTF8(went->d_name, &name_utf8)) { in adb_readdir() 2762 if (!android::base::WideToUTF8(*env, equal - *env, &name_utf8)) { in _init_env() 2770 if (!android::base::WideToUTF8(equal + 1, &value_utf8)) { in _init_env() 2804 const bool narrow_result = android::base::WideToUTF8(wbuf, &buf_utf8); in adb_getcwd()
|