Home
last modified time | relevance | path

Searched refs:utf8Units (Results 1 – 2 of 2) sorted by relevance

/third_party/skia/modules/skunicode/include/
DSkUnicode.h68 virtual bool setText(const char utftext8[], int utf8Units) = 0;
132 … (const char utf8[], int utf8Units, TextDirection dir, std::vector<BidiRegion>* results) = 0;
134 (const char utf8[], int utf8Units, std::vector<LineBreakBefore>* results) = 0;
136 (const char utf8[], int utf8Units, std::vector<Position>* results) = 0;
138 (const char utf8[], int utf8Units, std::vector<Position>* results) = 0;
142 int utf8Units = SkUTF::UTF16ToUTF8(nullptr, 0, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8() local
143 if (utf8Units < 0) { in convertUtf16ToUtf8()
147 SkAutoTArray<char> utf8(utf8Units); in convertUtf16ToUtf8()
148 …SkDEBUGCODE(int dstLen =) SkUTF::UTF16ToUTF8(utf8.data(), utf8Units, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8()
149 SkASSERT(dstLen == utf8Units); in convertUtf16ToUtf8()
[all …]
/third_party/skia/modules/skunicode/src/
DSkUnicode_icu.cpp107 …static std::unique_ptr<SkBidiIterator> makeBidiIterator(const char utf8[], int utf8Units, Directio… in makeBidiIterator() argument
109 if (!SkTFitsIn<int32_t>(utf8Units)) { in makeBidiIterator()
115 int utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Units); in makeBidiIterator()
121 SkDEBUGCODE(int dstLen =) SkUTF::UTF8ToUTF16(utf16.get(), utf16Units, utf8, utf8Units); in makeBidiIterator()
129 static std::vector<Region> getBidiRegions(const char utf8[], int utf8Units, Direction dir) { in getBidiRegions() argument
131 auto bidiIterator = makeBidiIterator(utf8, utf8Units, dir); in getBidiRegions()
134 const char* end8 = utf8 + utf8Units; in getBidiRegions()
185 bool setText(const char utftext8[], int utf8Units) override { in setText() argument
187 ICUUText text(sk_utext_openUTF8(nullptr, &utftext8[0], utf8Units, &status)); in setText()
280 int utf8Units, in extractBidi() argument
[all …]