Lines Matching defs:index
68 TextIndex index = 0;
71 index += block.charCount;
73 adjustedBlock.fEnd = index;
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
544 TextIndex index = 0;
546 blocks.emplace_back(index);
547 index += chunk;
549 blocks.emplace_back(index);
638 for (auto index = 0; index < unicodeText->getText16().size(); ++index) {
639 if (unicodeText->hasProperty(index, CodeUnitFlags::kHardLineBreakBefore)) {
640 selectableText->fGlyphUnitProperties[index] = GlyphUnitFlags::kGraphemeClusterStart;
653 void SelectableText::onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) {
654 SkASSERT(fBoxLines.size() == index);
655 fBoxLines.emplace_back(index, lineText, hardBreak, bounds);
658 void SelectableText::onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) {