Home | History | Annotate | Download | only in base

Lines Matching defs:UTF8ToWide

35   EXPECT_FALSE(android::base::UTF8ToWide("before\xa2" "after", &wide));
39 // Even if an invalid character is encountered, UTF8ToWide() should still do
44 // specific replacement character that UTF8ToWide() may replace the invalid
64 // UTF8ToWide() and WideToUTF8() that don't return success/failure, so these are
70 static std::wstring UTF8ToWide(const std::string& utf8) {
72 EXPECT_TRUE(UTF8ToWide(utf8, &utf16));
121 wide << UTF8ToWide(utf8.str());
133 EXPECT_EQ(wempty, UTF8ToWide(empty));
169 const bool success = UTF8ToWide(convert_cases[i].utf8,
174 // that because our implementation of UTF8ToWide() does not guarantee to
186 EXPECT_TRUE(UTF8ToWide("\00Z\t", 3, &converted));
193 EXPECT_TRUE(UTF8ToWide("B", 1, &converted));
343 return UTF8ToWide(utf8);