Home
last modified time | relevance | path

Searched refs:utf8 (Results 1 – 7 of 7) sorted by relevance

/system/core/base/
Dutf8.cpp42 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) { in WideToUTF8() argument
43 utf8->clear(); in WideToUTF8()
69 utf8->resize(chars_required); in WideToUTF8()
72 &(*utf8)[0], chars_required, NULL, in WideToUTF8()
78 utf8->clear(); in WideToUTF8()
85 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) { in WideToUTF8() argument
87 return WideToUTF8(utf16, wcslen(utf16), utf8); in WideToUTF8()
90 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) { in WideToUTF8() argument
93 return WideToUTF8(utf16.c_str(), utf16.length(), utf8); in WideToUTF8()
97 static bool UTF8ToWideWithFlags(const char* utf8, const size_t size, std::wstring* utf16, in UTF8ToWideWithFlags() argument
[all …]
Dutf8_test.cpp70 static std::wstring UTF8ToWide(const std::string& utf8) { in UTF8ToWide() argument
72 EXPECT_TRUE(UTF8ToWide(utf8, &utf16)); in UTF8ToWide()
77 std::string utf8; in WideToUTF8() local
78 EXPECT_TRUE(WideToUTF8(utf16, &utf8)); in WideToUTF8()
79 return utf8; in WideToUTF8()
118 std::ostringstream utf8; in TEST() local
119 utf8 << WideToUTF8(kConvertRoundtripCases[i]); in TEST()
121 wide << UTF8ToWide(utf8.str()); in TEST()
138 const char* utf8; in TEST() member
169 const bool success = UTF8ToWide(convert_cases[i].utf8, in TEST()
[all …]
DAndroid.mk35 utf8.cpp \
Dfile.cpp36 using namespace android::base::utf8;
/system/core/base/include/android-base/
Dutf8.h35 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8);
39 bool WideToUTF8(const wchar_t* utf16, std::string* utf8);
43 bool WideToUTF8(const std::wstring& utf16, std::string* utf8);
47 bool UTF8ToWide(const char* utf8, const size_t size, std::wstring* utf16);
51 bool UTF8ToWide(const char* utf8, std::wstring* utf16);
55 bool UTF8ToWide(const std::string& utf8, std::wstring* utf16);
73 namespace utf8 {
/system/tools/aidl/
Daidl_language_l.ll76 @utf8 { return yy::parser::token::ANNOTATION_UTF8; }
/system/core/adb/
Dsysdeps_win32.cpp2471 const char* utf8; in _console_write_utf8() local
2478 utf8 = buf; in _console_write_utf8()
2487 utf8 = combined_buffer.data(); in _console_write_utf8()
2488 utf8_size = internal::ParseCompleteUTF8(utf8, utf8 + combined_buffer.size(), in _console_write_utf8()
2499 (void)android::base::UTF8ToWide(utf8, utf8_size, &utf16); in _console_write_utf8()