Searched refs:utf16Units (Results 1 – 3 of 3) sorted by relevance
/external/skia/modules/skshaper/src/ |
D | SkUnicode_icu.cpp | 70 …static std::unique_ptr<SkBidiIterator> makeBidiIterator(const uint16_t utf16[], int utf16Units, Di… in makeBidiIterator() argument 72 SkUnicodeBidi bidi(ubidi_openSized(utf16Units, 0, &status)); in makeBidiIterator() 81 ubidi_setPara(bidi.get(), (const UChar*)utf16, utf16Units, bidiLevel, nullptr, &status); in makeBidiIterator() 99 int utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Units); in makeBidiIterator() local 100 if (utf16Units < 0) { in makeBidiIterator() 104 std::unique_ptr<uint16_t[]> utf16(new uint16_t[utf16Units]); in makeBidiIterator() 105 SkDEBUGCODE(int dstLen =) SkUTF::UTF8ToUTF16(utf16.get(), utf16Units, utf8, utf8Units); in makeBidiIterator() 106 SkASSERT(dstLen == utf16Units); in makeBidiIterator() 108 return makeBidiIterator(utf16.get(), utf16Units, dir); in makeBidiIterator() 251 auto utf16Units = utf8ToUtf16(utf8, utf8Units, &utf16); in extractBidi() local [all …]
|
D | SkShaper_harfbuzz.cpp | 1456 int32_t utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Bytes); in MakeSkUnicodeBidiRunIterator() local 1457 if (utf16Units < 0) { in MakeSkUnicodeBidiRunIterator() 1462 std::unique_ptr<uint16_t[]> utf16(new uint16_t[utf16Units]); in MakeSkUnicodeBidiRunIterator() 1463 (void)SkUTF::UTF8ToUTF16(utf16.get(), utf16Units, utf8, utf8Bytes); in MakeSkUnicodeBidiRunIterator() 1466 SkUnicodeBidi bidi = unicode->makeBidiIterator(utf16.get(), utf16Units, bidiDir); in MakeSkUnicodeBidiRunIterator()
|
/external/skqp/modules/skshaper/src/ |
D | SkShaper_harfbuzz.cpp | 147 int32_t utf16Units; in Make() local 148 u_strFromUTF8(nullptr, 0, &utf16Units, utf8, utf8Bytes, &status); in Make() 150 std::unique_ptr<UChar[]> utf16(new UChar[utf16Units]); in Make() 151 u_strFromUTF8(utf16.get(), utf16Units, nullptr, utf8, utf8Bytes, &status); in Make() 157 ICUBiDi bidi(ubidi_openSized(utf16Units, 0, &status)); in Make() 166 ubidi_setPara(bidi.get(), utf16.get(), utf16Units, level, nullptr, &status); in Make()
|