Lines Matching refs:textRange
123 void ParagraphImpl::addUnresolvedCodepoints(TextRange textRange) { in addUnresolvedCodepoints() argument
125 &fText[textRange.start], textRange.width(), in addUnresolvedCodepoints()
674 … fCodeUnitProperties[fRuns.back().textRange().end] |= SkUnicode::CodeUnitFlags::kGraphemeStart; in buildClusterTable()
675 … fCodeUnitProperties[fRuns.back().textRange().end] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
685 for (auto i = run.textRange().start; i < run.textRange().end; ++i) { in buildClusterTable()
689 …fClusters.emplace_back(this, runIndex, 0ul, 1ul, this->text(run.textRange()), run.advance().fX, ru… in buildClusterTable()
690 … fCodeUnitProperties[run.textRange().start] |= SkUnicode::CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
691 … fCodeUnitProperties[run.textRange().end] |= SkUnicode::CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
712 fCodeUnitProperties[run.textRange().start] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
774 auto textRange = TextRange(0, this->text().size()); in breakShapedTextIntoLines() local
810 textExcludingSpaces, textRange, textRange, in breakShapedTextIntoLines()
910 BlockRange ParagraphImpl::findAllBlocks(TextRange textRange) { in findAllBlocks() argument
915 if (block.fRange.end <= textRange.start) { in findAllBlocks()
918 if (block.fRange.start >= textRange.end) { in findAllBlocks()
1111 SkSpan<const char> ParagraphImpl::text(TextRange textRange) { in text() argument
1112 SkASSERT(textRange.start <= fText.size() && textRange.end <= fText.size()); in text()
1113 auto start = fText.c_str() + textRange.start; in text()
1114 return SkSpan<const char>(start, textRange.width()); in text()
1300 SkTArray<TextIndex> ParagraphImpl::countSurroundingGraphemes(TextRange textRange) const { in countSurroundingGraphemes()
1301 textRange = textRange.intersection({0, fText.size()}); in countSurroundingGraphemes()
1303 if ((fCodeUnitProperties[textRange.start] & SkUnicode::CodeUnitFlags::kGraphemeStart) == 0) { in countSurroundingGraphemes()
1305 graphemes.emplace_back(textRange.start); in countSurroundingGraphemes()
1307 for (auto index = textRange.start; index < textRange.end; ++index) { in countSurroundingGraphemes()
1437 line.getRectsForRange(cluster.textRange(), in getGlyphClusterAt()
1443 *glyphInfo = {boxes[0].rect, cluster.textRange(), boxes[0].direction}; in getGlyphClusterAt()
1469 if (run.textRange().contains({codeUnitIndex, codeUnitIndex})) { in getFontAt()
1479 results.emplace_back(run.font(), run.textRange()); in getFonts()
1492 auto firstStr = text(fRuns.front().textRange()); in measureText()
1503 auto str = text(run.textRange()); in measureText()