Lines Matching defs:UTF8ToWide
40 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) {
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() does not guarantee to
191 EXPECT_TRUE(UTF8ToWide("\00Z\t", 3, &converted));
198 EXPECT_TRUE(UTF8ToWide("B", 1, &converted));
348 return UTF8ToWide(utf8);