/external/skia/modules/skunicode/src/ |
D | SkUnicode.cpp | 43 int utf8Units = SkUTF::UTF16ToUTF8(nullptr, 0, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8() local 44 if (utf8Units < 0) { in convertUtf16ToUtf8() 48 AutoTArray<char> utf8(utf8Units); in convertUtf16ToUtf8() 49 …SkDEBUGCODE(int dstLen =) SkUTF::UTF16ToUTF8(utf8.data(), utf8Units, (uint16_t*)utf16, utf16Units); in convertUtf16ToUtf8() 50 SkASSERT(dstLen == utf8Units); in convertUtf16ToUtf8() 52 return SkString(utf8.data(), utf8Units); in convertUtf16ToUtf8() 59 std::u16string SkUnicode::convertUtf8ToUtf16(const char* utf8, int utf8Units) { in convertUtf8ToUtf16() argument 61 int utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Units); in convertUtf8ToUtf16() 68 SkDEBUGCODE(int dstLen =) SkUTF::UTF8ToUTF16(utf16.data(), utf16Units, utf8, utf8Units); in convertUtf8ToUtf16()
|
D | SkUnicode_icu_bidi.cpp | 58 int utf8Units, in makeBidiIterator() argument 61 if (!SkTFitsIn<int32_t>(utf8Units)) { in makeBidiIterator() 67 int utf16Units = SkUTF::UTF8ToUTF16(nullptr, 0, utf8, utf8Units); in makeBidiIterator() 73 SkDEBUGCODE(int dstLen =) SkUTF::UTF8ToUTF16(utf16.get(), utf16Units, utf8, utf8Units); in makeBidiIterator() 86 int utf8Units, in extractBidi() argument 90 auto utf16 = SkUnicode::convertUtf8ToUtf16(utf8, utf8Units); in extractBidi() 112 const char* end8 = utf8 + utf8Units; in extractBidi() 124 bidiRegions->emplace_back(0, utf8Units, SkUnicode_IcuBidi::bidi_getLevelAt(bidi.get(), 0)); in extractBidi()
|
D | SkUnicode_icu.cpp | 129 bool setText(const char utftext8[], int utf8Units) override { in setText() argument 131 ICUUText text(sk_utext_openUTF8(nullptr, &utftext8[0], utf8Units, &status)); in setText() 243 (const char utf8[], int utf8Units, BreakType type, std::function<void(int, int)> setBreak) { in extractPositions() argument 246 ICUUText text(sk_utext_openUTF8(nullptr, &utf8[0], utf8Units, &status)); in extractPositions() 280 const char* end = utf8 + utf8Units; in extractPositions() 367 int utf8Units, in getBidiRegions() argument 370 return SkUnicode::extractBidi(utf8, utf8Units, dir, results); in getBidiRegions() 373 …bool getWords(const char utf8[], int utf8Units, const char* locale, std::vector<Position>* results… in getWords() argument 376 auto utf16 = convertUtf8ToUtf16(utf8, utf8Units); in getWords() 380 bool computeCodeUnitFlags(char utf8[], int utf8Units, bool replaceTabs, in computeCodeUnitFlags() argument [all …]
|
D | SkUnicode_client.cpp | 118 int utf8Units, in getBidiRegions() argument 121 return SkUnicode::extractBidi(utf8, utf8Units, dir, results); in getBidiRegions() 200 int utf8Units, in computeCodeUnitFlags() argument 204 results->push_back_n(utf8Units + 1, CodeUnitFlags::kNoCodeUnitFlag); in computeCodeUnitFlags() 215 const char* end = utf8 + utf8Units; in computeCodeUnitFlags() 259 …bool getWords(const char utf8[], int utf8Units, const char* locale, std::vector<Position>* results… in getWords() argument 300 bool setText(const char utftext8[], int utf8Units) override { in setText() argument 302 utf8Units <= SkToS16(fData->fText8.size())); in setText() 304 fEnd = fStart + utf8Units; in setText()
|
/external/skia/modules/skunicode/include/ |
D | SkUnicode.h | 72 virtual bool setText(const char utftext8[], int utf8Units) = 0; 140 int utf8Units, 144 int utf8Units, 147 virtual bool getWords(const char utf8[], int utf8Units, const char* locale, 149 virtual bool computeCodeUnitFlags(char utf8[], int utf8Units, bool replaceTabs, 156 static std::u16string convertUtf8ToUtf16(const char* utf8, int utf8Units); 206 void forEachCodepoint(const char* utf8, int32_t utf8Units, Callback&& callback) { in forEachCodepoint() argument 208 const char* end = utf8 + utf8Units; in forEachCodepoint()
|
/external/skia/modules/skparagraph/tests/ |
D | SkParagraphTest.cpp | 269 bool computeCodeUnitFlags(char utf8[], int utf8Units, bool replaceTabs, in computeCodeUnitFlags() argument 271 return fClient->computeCodeUnitFlags(utf8, utf8Units, replaceTabs, results); in computeCodeUnitFlags() 279 …bool getWords(const char utf8[], int utf8Units, const char* locale, std::vector<Position>* results… in getWords() argument 280 return fClient->getWords(utf8, utf8Units, locale, results); in getWords() 284 int utf8Units, in getBidiRegions() argument 287 return fClient->getBidiRegions(utf8, utf8Units, dir, results); in getBidiRegions() 340 bool setText(const char utftext8[], int utf8Units) override { in setText() argument 341 fIcuIter->setText(utftext8, utf8Units); in setText() 342 return fClientIter->setText(utftext8, utf8Units); in setText()
|