Lines Matching defs:utf16
9 UnicodeText::UnicodeText(std::unique_ptr<SkUnicode> unicode, SkSpan<uint16_t> utf16)
10 : fText16(std::u16string((char16_t*)utf16.data(), utf16.size()))
12 initialize(utf16);
30 void UnicodeText::initialize(SkSpan<uint16_t> utf16) {
36 fCodeUnitProperties.push_back_n(utf16.size() + 1, CodeUnitFlags::kNoCodeUnitFlag);
37 this->fUnicode->forEachCodepoint((char16_t*)utf16.data(), utf16.size(),
46 this->fUnicode->forEachBreak((char16_t*)utf16.data(), utf16.size(), SkUnicode::BreakType::kGraphemes,
51 this->fUnicode->forEachBreak((char16_t*)utf16.data(), utf16.size(), SkUnicode::BreakType::kLines,
227 // Get utf8 <-> utf16 conversion tables.
228 // We need to pass to SkShaper indices in utf8 and then convert them back to utf16 for SkText
238 // utf8 index group of 1, 2 or 3 can be represented with one utf16 index group
242 // utf16 index group of 1 or 2 can refer to the same group of utf8 indices
260 // Convert fontBlocks from utf16 to utf8
301 // Convert utf8 range into utf16 range
305 // Convert all utf8 indexes into utf16 indexes (and also shift them to be on the entire text scale, too)