Searched defs:SysUTF8ToWide (Results 1 - 1 of 1) sorted by relevance

/system/core/base/
H A Dutf8_test.cpp334 // and SysUTF8ToWide(), so these are stub implementations that call the helpers
342 static std::wstring SysUTF8ToWide(const std::string& utf8) { function in namespace:android::base
386 TEST(SysStrings, SysUTF8ToWide) {
387 EXPECT_EQ(L"Hello, world", SysUTF8ToWide("Hello, world"));
388 EXPECT_EQ(L"\x4f60\x597d", SysUTF8ToWide("\xe4\xbd\xa0\xe5\xa5\xbd"));
390 EXPECT_EQ(kSysWideOldItalicLetterA, SysUTF8ToWide("\xF0\x90\x8C\x80"));
397 // EXPECT_EQ(L"\x4f60zyxw", SysUTF8ToWide("\xe4\xbd\xa0\xe5\xa5zyxw"));
408 EXPECT_EQ(expected_null, SysUTF8ToWide(utf8_null));

Completed in 28 milliseconds