Searched refs:UTF8ToWide (Results 1 - 6 of 6) sorted by path

/system/core/adb/
H A DAndroid.mk34 # if (!android::base::UTF8ToWide(path_utf8, &path_wide)) { /* error handling */ }
H A Dsysdeps_win32.cpp349 if (!android::base::UTF8ToWide(path, &path_wide)) {
393 if (!android::base::UTF8ToWide(path, &path_wide)) {
857 // requirements >= WinXP SP2, switch to android::base::UTF8ToWide() + GetAddrInfoW().
2099 // android::base::UTF8ToWide() which converts from UTF-8 to UTF-16. This is used to
2156 if (!android::base::UTF8ToWide(path, &path_wide)) {
2174 if (!android::base::UTF8ToWide(path, &path_wide)) {
2229 if (!android::base::UTF8ToWide(path, &wpath)) {
2248 if (!android::base::UTF8ToWide(path, &path_wide)) {
2258 if (!android::base::UTF8ToWide(path, &path_wide)) {
2271 if (!android::base::UTF8ToWide(pat
[all...]
/system/core/adb/sysdeps/win32/
H A Dstat.cpp42 if (!android::base::UTF8ToWide(path, &path_wide)) {
/system/core/base/include/android-base/
H A 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/base/
H A Dutf8.cpp132 bool UTF8ToWide(const char* utf8, const size_t size, std::wstring* utf16) { function in namespace:android::base
147 bool UTF8ToWide(const char* utf8, std::wstring* utf16) { function in namespace:android::base
149 return UTF8ToWide(utf8, strlen(utf8), utf16);
152 bool UTF8ToWide(const std::string& utf8, std::wstring* utf16) { function in namespace:android::base
155 return UTF8ToWide(utf8.c_str(), utf8.length(), utf16);
163 if (!UTF8ToWide(utf8, utf16)) {
191 if (!UTF8ToWide(mode, &mode_utf16)) {
H A Dutf8_test.cpp40 EXPECT_FALSE(android::base::UTF8ToWide("before\xa2" "after", &wide));
44 // Even if an invalid character is encountered, UTF8ToWide() should still do
49 // specific replacement character that UTF8ToWide() may replace the invalid
69 // UTF8ToWide() and WideToUTF8() that don't return success/failure, so these are
75 static std::wstring UTF8ToWide(const std::string& utf8) { function in namespace:android::base
77 EXPECT_TRUE(UTF8ToWide(utf8, &utf16));
126 wide << UTF8ToWide(utf8.str());
138 EXPECT_EQ(wempty, UTF8ToWide(empty));
174 const bool success = UTF8ToWide(convert_cases[i].utf8,
179 // that because our implementation of UTF8ToWide() doe
[all...]

Completed in 94 milliseconds