Home
last modified time | relevance | path

Searched refs:UTF8ToWide (Results 1 – 8 of 8) sorted by relevance

/system/libbase/
Dutf8.cpp132 bool UTF8ToWide(const char* utf8, const size_t size, std::wstring* utf16) { in UTF8ToWide() function
147 bool UTF8ToWide(const char* utf8, std::wstring* utf16) { in UTF8ToWide() function
149 return UTF8ToWide(utf8, strlen(utf8), utf16); in UTF8ToWide()
152 bool UTF8ToWide(const std::string& utf8, std::wstring* utf16) { in UTF8ToWide() function
155 return UTF8ToWide(utf8.c_str(), utf8.length(), utf16); in UTF8ToWide()
163 if (!UTF8ToWide(utf8, utf16)) { in UTF8PathToWindowsLongPath()
191 if (!UTF8ToWide(mode, &mode_utf16)) { in fopen()
Dutf8_test.cpp40 EXPECT_FALSE(android::base::UTF8ToWide("before\xa2" "after", &wide)); in TEST()
75 static std::wstring UTF8ToWide(const std::string& utf8) { in UTF8ToWide() function
77 EXPECT_TRUE(UTF8ToWide(utf8, &utf16)); in UTF8ToWide()
126 wide << UTF8ToWide(utf8.str()); in TEST()
138 EXPECT_EQ(wempty, UTF8ToWide(empty)); in TEST()
174 const bool success = UTF8ToWide(convert_cases[i].utf8, in TEST()
191 EXPECT_TRUE(UTF8ToWide("\00Z\t", 3, &converted)); in TEST()
198 EXPECT_TRUE(UTF8ToWide("B", 1, &converted)); in TEST()
348 return UTF8ToWide(utf8); in SysUTF8ToWide()
Dfile.cpp57 CHECK(android::base::UTF8ToWide(name_template, &path)) in mkstemp()
80 CHECK(android::base::UTF8ToWide(name_template, &path)) in mkdtemp()
/system/libbase/include/android-base/
Dutf8.h49 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);
/system/core/adb/sysdeps/win32/
Dstat.cpp42 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_stat()
/system/core/adb/
Dsysdeps_win32.cpp373 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_open()
416 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_creat()
2296 if (!android::base::UTF8ToWide(path.data(), path.size(), &path_wide)) { in unix_open()
2314 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_opendir()
2369 if (!android::base::UTF8ToWide(path, &wpath)) { in adb_unlink()
2388 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_mkdir()
2397 if (!android::base::UTF8ToWide(oldpath, &oldpath_wide)) { in adb_rename()
2400 if (!android::base::UTF8ToWide(newpath, &newpath_wide)) { in adb_rename()
2412 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_utime()
2425 if (!android::base::UTF8ToWide(path, &path_wide)) { in adb_chmod()
[all …]
DAndroid.bp56 // if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ }
/system/core/adb/client/
Dline_printer.cpp93 (void)android::base::UTF8ToWide(to_print, &to_print_wide); in Print()