Searched defs:UTF8ToWide (Results 1 - 2 of 2) sorted by last modified time

/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 213 milliseconds