Home
last modified time | relevance | path

Searched defs:utf16 (Results 1 – 25 of 163) sorted by relevance

1234567

/aosp_15_r20/system/libbase/
H A Dutf8.cpp44 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 Dutf8_test.cpp76 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 Dold_utf_string_conversions.cc144 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 Dutf_string_conversions.cc221 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 Dpac_file_data.cc19 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 DSkUnicode.cpp14 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 DSkUnicode_icu_bidi.cpp42 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 DSkUnicode_icu.cpp338 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 DSkUnicode_icu4x.cpp117 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 DSkUnicode_libgrapheme.cpp115 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 Dicu_string_conversions.cc143 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 Dicu_string_conversions.cc142 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 Dutf_string_conversions.cc242 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 DTestUtils.cpp92 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/
DWin32UnicodeString_unittest.cpp34 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 DLayoutCoreTest.cpp31 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 DLayoutSplitterTest.cpp30 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 DSkUnicode.h254 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 DUtil.cpp52 std::u16string utf16; in Utf8ToUtf16() local
59 std::string Utf16ToUtf8(StringPiece16 utf16) { in Utf16ToUtf8()
/aosp_15_r20/art/runtime/native/
H A Dlibcore_util_CharsetUtils.cc115 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 Dsystem_utils_win.cpp271 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 DSkUTF.cpp70 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 Dutf.c92 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 DConvert.cpp74 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 Dandroid_graphics_fonts_cts_SystemFonts.cpp193 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

1234567