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

/system/core/base/
H A Dutf8.cpp130 bool UTF8ToWide(const char* utf8, const size_t size, std::wstring* utf16) { function in namespace:android::base
145 bool UTF8ToWide(const char* utf8, std::wstring* utf16) { function in namespace:android::base
147 return UTF8ToWide(utf8, strlen(utf8), utf16);
150 bool UTF8ToWide(const std::string& utf8, std::wstring* utf16) { function in namespace:android::base
153 return UTF8ToWide(utf8.c_str(), utf8.length(), utf16);
161 if (!UTF8ToWide(name, &name_utf16)) {
178 if (!UTF8ToWide(name, &name_utf16)) {
H A Dutf8_test.cpp35 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) { function in namespace:android::base
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() doe
[all...]

Completed in 79 milliseconds