Home
last modified time | relevance | path

Searched refs:fTextRange (Results 1 – 7 of 7) sorted by relevance

/external/skia/modules/skparagraph/src/
DRun.h113 TextRange textRange() const { return fTextRange; } in textRange()
180 TextRange fTextRange; variable
216 : fCodepointRange(codepoints), fTextRange(textRange) { } in Grapheme()
218 TextRange fTextRange; // Used for getRectsForRange member
236 , fTextRange(EMPTY_TEXT) in Cluster()
255 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster()
286 TextRange textRange() const { return fTextRange; } in textRange()
298 bool contains(TextIndex ch) const { return ch >= fTextRange.start && ch < fTextRange.end; } in contains()
301 return fTextRange.start >= text.start && fTextRange.end <= text.end; in belongs()
305 return fTextRange.start >= text.start && fTextRange.start < text.end; in startsIn()
[all …]
DRun.cpp28 , fTextRange(firstChar + info.utf8Range.begin(), firstChar + info.utf8Range.end()) in Run()
306 auto span = fMaster->text(fTextRange); in setIsWhiteSpaces()
318 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeToChar()
321 auto shift = ch - fTextRange.start; in sizeToChar()
322 auto ratio = shift * 1.0 / fTextRange.width(); in sizeToChar()
328 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeFromChar()
331 auto shift = fTextRange.end - ch - 1; in sizeFromChar()
332 auto ratio = shift * 1.0 / fTextRange.width(); in sizeFromChar()
381 , fTextRange(text.begin() - fMaster->text().begin(), text.end() - fMaster->text().begin()) in Cluster()
DTextLine.h45 TextRange trimmedText() const { return fTextRange; } in trimmedText()
51 bool empty() const { return fTextRange.empty(); } in empty()
115 return fTextRange.contains(cluster->textRange()); in contains()
120 TextRange fTextRange; variable
DOneLineShaper.cpp94 TextRange resolvedTextLimits = fCurrentRun->fTextRange; in fillGaps()
255 this->fCurrentRun->fTextRange, in addFullyResolved()
264 SkASSERT(unresolved.fText.width() == fCurrentRun->fTextRange.width()); in addUnresolvedWithRun()
601 while (index < fCurrentRun->fTextRange.end) { in clusteredText()
607 return fCurrentRun->fTextRange.end; in clusteredText()
609 while (index >= fCurrentRun->fTextRange.start) { in clusteredText()
615 return fCurrentRun->fTextRange.start; in clusteredText()
DTextLine.cpp64 , fTextRange(text) in TextLine()
663 handler.run()->fTextRange = TextRange(0, ellipsis.size()); in shapeEllipsis()
878 TextRange(fTextRange.end, fTextWithWhitespacesRange.end), run->fTextRange); in iterateThroughVisualRuns()
916 result.fStartIndex = fTextRange.start; in getMetrics()
918 result.fEndExcludingWhitespaces = fTextRange.end; in getMetrics()
DParagraphImpl.cpp630 text.start = startGrapheme.fTextRange.start; in getRectsForRange()
634 : startGrapheme.fTextRange.end; in getRectsForRange()
637 text.start = startGrapheme.fTextRange.start; in getRectsForRange()
644 if (text.start == endGrapheme.fTextRange.start && in getRectsForRange()
646 text.end = endGrapheme.fTextRange.end; in getRectsForRange()
648 text.end = endGrapheme.fTextRange.start; in getRectsForRange()
DOneLineShaper.h47 , fText(run->fTextRange) in RunBlock()