Home | History | Annotate | Download | only in base

Lines Matching refs:utf8

17 #include "android-base/utf8.h"
70 static std::wstring UTF8ToWide(const std::string& utf8) {
72 EXPECT_TRUE(UTF8ToWide(utf8, &utf16));
77 std::string utf8;
78 EXPECT_TRUE(WideToUTF8(utf16, &utf8));
79 return utf8;
118 std::ostringstream utf8;
119 utf8 << WideToUTF8(kConvertRoundtripCases[i]);
121 wide << UTF8ToWide(utf8.str());
138 const char* utf8;
169 const bool success = UTF8ToWide(convert_cases[i].utf8,
170 strlen(convert_cases[i].utf8),
203 const char* utf8;
246 std::string expected(convert_cases[i].utf8);
259 const char* utf8;
282 std::string expected(convert_cases[i].utf8);
342 static std::wstring SysUTF8ToWide(const std::string& utf8) {
343 return UTF8ToWide(utf8);