/aosp_15_r20/system/libbase/ |
H A D | utf8.cpp | 44 bool WideToUTF8(const wchar_t* utf16, const size_t size, std::string* utf8) { in WideToUTF8() 87 bool WideToUTF8(const wchar_t* utf16, std::string* utf8) { in WideToUTF8() 92 bool WideToUTF8(const std::wstring& utf16, std::string* utf8) { in WideToUTF8() 99 static bool UTF8ToWideWithFlags(const char* utf8, const size_t size, std::wstring* utf16, in UTF8ToWideWithFlags() 132 bool UTF8ToWide(const char* utf8, const size_t size, std::wstring* utf16) { in UTF8ToWide() 147 bool UTF8ToWide(const char* utf8, std::wstring* utf16) { in UTF8ToWide() 152 bool UTF8ToWide(const std::string& utf8, std::wstring* utf16) { in UTF8ToWide() 162 bool UTF8PathToWindowsLongPath(const char* utf8, std::wstring* utf16) { in UTF8PathToWindowsLongPath()
|
H A D | utf8_test.cpp | 76 std::wstring utf16; in UTF8ToWide() local 81 static std::string WideToUTF8(const std::wstring& utf16) { in WideToUTF8() 207 const wchar_t* utf16; in TEST() member 309 static std::string UTF16ToUTF8(const string16& utf16) { in UTF16ToUTF8() 343 static std::string SysWideToUTF8(const std::wstring& utf16) { in SysWideToUTF8()
|
/aosp_15_r20/external/libchrome/base/strings/ |
H A D | old_utf_string_conversions.cc | 144 std::wstring UTF16ToWide(const string16& utf16) { in UTF16ToWide() 172 std::wstring UTF16ToWide(const string16& utf16) { in UTF16ToWide() 217 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8() 240 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8() 257 std::string UTF16ToASCII(StringPiece16 utf16) { in UTF16ToASCII()
|
H A D | utf_string_conversions.cc | 221 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8() 248 std::wstring UTF16ToWide(StringPiece16 utf16) { in UTF16ToWide() 270 std::wstring UTF16ToWide(StringPiece16 utf16) { in UTF16ToWide() 328 std::string UTF16ToASCII(StringPiece16 utf16) { in UTF16ToASCII()
|
/aosp_15_r20/external/cronet/net/proxy_resolution/ |
H A D | pac_file_data.cc | 19 scoped_refptr<PacFileData> PacFileData::FromUTF16(const std::u16string& utf16) { in FromUTF16() 36 const std::u16string& PacFileData::utf16() const { in utf16() function in net::PacFileData 64 const std::u16string& utf16) in PacFileData()
|
/aosp_15_r20/external/skia/modules/skunicode/src/ |
H A D | SkUnicode.cpp | 14 SkString SkUnicode::convertUtf16ToUtf8(const char16_t* utf16, int utf16Units) { in convertUtf16ToUtf8() 28 SkString SkUnicode::convertUtf16ToUtf8(const std::u16string& utf16) { in convertUtf16ToUtf8() 40 AutoTArray<uint16_t> utf16(utf16Units); in convertUtf8ToUtf16() local
|
H A D | SkUnicode_icu_bidi.cpp | 42 std::unique_ptr<SkBidiIterator> SkBidiFactory::MakeIterator(const uint16_t utf16[], in MakeIterator() 79 std::unique_ptr<uint16_t[]> utf16(new uint16_t[utf16Units]); in MakeIterator() local 97 auto utf16 = SkUnicode::convertUtf8ToUtf16(utf8, utf8Units); in ExtractBidi() local
|
H A D | SkUnicode_icu.cpp | 338 static bool extractWords(uint16_t utf16[], int utf16Units, const char* locale, in extractWords() 532 auto utf16 = convertUtf8ToUtf16(utf8, utf8Units); in getWords() local 541 auto utf16 = convertUtf8ToUtf16(utf8, utf8Units); in getUtf8Words() local 621 bool computeCodeUnitFlags(char16_t utf16[], int utf16Units, bool replaceTabs, in computeCodeUnitFlags()
|
H A D | SkUnicode_icu4x.cpp | 117 bool getBidiRegions(const uint16_t utf16[], in getBidiRegions() 138 bool computeCodeUnitFlags(char16_t utf16[], int utf16Units, bool replaceTabs, in computeCodeUnitFlags() 148 auto utf16 = SkUnicode::convertUtf8ToUtf16(utf8, utf8Units); in getWords() local
|
H A D | SkUnicode_libgrapheme.cpp | 115 bool computeCodeUnitFlags(char16_t utf16[], int utf16Units, bool replaceTabs, in computeCodeUnitFlags() 132 uint16_t utf16[2]; in getUtf8To16Mapping() local
|
/aosp_15_r20/external/libchrome/base/i18n/ |
H A D | icu_string_conversions.cc | 143 bool UTF16ToCodepage(const string16& utf16, in UTF16ToCodepage() 161 string16* utf16) { in CodepageToUTF16() 198 string16 utf16; in ConvertToUtf8AndNormalize() local
|
/aosp_15_r20/external/cronet/base/i18n/ |
H A D | icu_string_conversions.cc | 142 bool UTF16ToCodepage(std::u16string_view utf16, in UTF16ToCodepage() 159 std::u16string* utf16) { in CodepageToUTF16() 196 std::u16string utf16; in ConvertToUtf8AndNormalize() local
|
/aosp_15_r20/external/cronet/base/strings/ |
H A D | utf_string_conversions.cc | 242 std::string UTF16ToUTF8(StringPiece16 utf16) { in UTF16ToUTF8() 269 std::wstring UTF16ToWide(StringPiece16 utf16) { in UTF16ToWide() 291 std::wstring UTF16ToWide(StringPiece16 utf16) { in UTF16ToWide() 349 std::string UTF16ToASCII(StringPiece16 utf16) { in UTF16ToASCII()
|
/aosp_15_r20/frameworks/base/libs/hwui/tests/common/ |
H A D | TestUtils.cpp | 92 auto utf16 = asciiToUtf16(text); in drawUtf8ToCanvas() local 103 auto utf16 = asciiToUtf16(text); in drawUtf8ToCanvas() local 124 std::unique_ptr<uint16_t[]> utf16(new uint16_t[length]); in asciiToUtf16() local
|
/aosp_15_r20/hardware/google/aemu/base/ |
D | Win32UnicodeString_unittest.cpp | 34 const wchar_t* utf16; in TEST() member 76 const wchar_t* utf16; in TEST() member 135 const wchar_t* utf16; in TEST() member
|
/aosp_15_r20/frameworks/minikin/tests/unittest/ |
H A D | LayoutCoreTest.cpp | 31 auto utf16 = utf8ToUtf16(text); in buildLayout() local 38 auto utf16 = utf8ToUtf16(text); in buildLayout() local 53 auto utf16 = utf8ToUtf16(text); in buildLayoutAndBounds() local
|
H A D | LayoutSplitterTest.cpp | 30 auto utf16 = utf8ToUtf16(text); in parseTestString() local 49 auto utf16 = utf8ToUtf16(text); in parseExpectString() local
|
/aosp_15_r20/external/skia/modules/skunicode/include/ |
H A D | SkUnicode.h | 254 void forEachCodepoint(const char16_t* utf16, int32_t utf16Units, Callback&& callback) { in forEachCodepoint() 266 …void forEachBidiRegion(const uint16_t utf16[], int utf16Units, SkBidiIterator::Direction dir, Call… in forEachBidiRegion() 290 …void forEachBreak(const char16_t utf16[], int utf16Units, SkUnicode::BreakType type, Callback&& ca… in forEachBreak()
|
/aosp_15_r20/frameworks/base/libs/androidfw/ |
H A D | Util.cpp | 52 std::u16string utf16; in Utf8ToUtf16() local 59 std::string Utf16ToUtf8(StringPiece16 utf16) { in Utf16ToUtf8()
|
/aosp_15_r20/art/runtime/native/ |
H A D | libcore_util_CharsetUtils.cc | 115 const uint16_t* utf16 = string->GetValue() + offset; in CharsetUtils_toUtf8Bytes() local 130 const uint16_t* utf16 = string->GetValue() + offset; in CharsetUtils_toUtf8Bytes() local
|
/aosp_15_r20/external/angle/src/common/ |
H A D | system_utils_win.cpp | 271 std::string Narrow(const std::wstring_view &utf16) in Narrow() 293 std::wstring utf16(requiredSize, L'\0'); in Widen() local
|
/aosp_15_r20/external/skia/src/base/ |
H A D | SkUTF.cpp | 70 int SkUTF::CountUTF16(const uint16_t* utf16, size_t byteLength) { in CountUTF16() 273 uint16_t utf16[2]; in UTF8ToUTF16() local
|
/aosp_15_r20/external/oj-libjdwp/src/share/npt/ |
H A D | utf.c | 92 utf16ToUtf8m(struct UtfInst *ui, unsigned short *utf16, int len, jbyte *output, int outputMaxLen) in utf16ToUtf8m() 132 utf16ToUtf8s(struct UtfInst *ui, unsigned short *utf16, int len, jbyte *output, int outputMaxLen) in utf16ToUtf8s()
|
/aosp_15_r20/frameworks/base/tools/aapt2/cmd/ |
H A D | Convert.cpp | 74 bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16, in SerializeXml() 157 bool SerializeXml(const xml::XmlResource* xml, const std::string& path, bool utf16, in SerializeXml()
|
/aosp_15_r20/cts/tests/tests/graphics/jni/ |
H A D | android_graphics_fonts_cts_SystemFonts.cpp | 193 std::vector<uint16_t> utf16(textChars.get(), textChars.get() + textChars.size()); in nMatchFamilyStyleCharacter() local 208 std::vector<uint16_t> utf16(textChars.get(), textChars.get() + textChars.size()); in nMatchFamilyStyleCharacter_runLength() local
|