Home
last modified time | relevance | path

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

/external/skia/experimental/sktext/src/
DLine.h82 Stretch() : fGlyphStart(), fGlyphEnd(), fWidth(0), fTextRange(0, 0), fTextMetrics() { } in Stretch()
88 , fTextRange(textIndex, textIndex) in Stretch()
110 fTextRange.fStart = fTextRange.fEnd; in clean()
126 this->fTextRange = tail.fTextRange; in moveTo()
137 this->fTextRange.merge(tail.fTextRange); in moveTo()
143 this->fTextRange.fEnd = textIndex; in finish()
149 TextRange textRange() const { return fTextRange; } in textRange()
150 void setTextRange(TextRange range) { fTextRange = range; } in setTextRange()
156 size_t textStart() const { return fTextRange.fStart; } in textStart()
162 TextRange fTextRange; variable
/external/skia/modules/skparagraph/src/
DRun.cpp25 , fTextRange(firstChar + info.utf8Range.begin(), firstChar + info.utf8Range.end()) in Run()
109 if (text.end > this->fTextRange.start) { in findLimitingClusters()
250 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeToChar()
253 auto shift = ch - fTextRange.start; in sizeToChar()
254 auto ratio = shift * 1.0 / fTextRange.width(); in sizeToChar()
260 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeFromChar()
263 auto shift = fTextRange.end - ch - 1; in sizeFromChar()
264 auto ratio = shift * 1.0 / fTextRange.width(); in sizeFromChar()
312 return fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kSoftLineBreakBefore); in isSoftBreak()
316 return fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kGraphemeStart); in isGraphemeBreak()
DRun.h106 TextRange textRange() const { return fTextRange; } in textRange()
175 TextRange fTextRange; variable
263 , fTextRange(EMPTY_TEXT) in Cluster()
280 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster()
310 TextRange textRange() const { return fTextRange; } in textRange()
321 bool contains(TextIndex ch) const { return ch >= fTextRange.start && ch < fTextRange.end; } in contains()
324 return fTextRange.start >= text.start && fTextRange.end <= text.end; in belongs()
328 return fTextRange.start >= text.start && fTextRange.start < text.end; in startsIn()
337 TextRange fTextRange; variable
DTextLine.h57 TextRange trimmedText() const { return fTextRange; } in trimmedText()
63 bool empty() const { return fTextRange.empty(); } in empty()
135 TextRange fTextRange; variable
DOneLineShaper.cpp86 TextRange resolvedTextLimits = fCurrentRun->fTextRange; in fillGaps()
252 : fCurrentRun->fTextRange.end); in normalizeTextRange()
261 this->fCurrentRun->fTextRange, in addFullyResolved()
270 SkASSERT(unresolved.fText.width() == fCurrentRun->fTextRange.width()); in addUnresolvedWithRun()
722 while (index < fCurrentRun->fTextRange.end) { in clusteredText()
729 return fCurrentRun->fTextRange.end; in clusteredText()
731 while (index > fCurrentRun->fTextRange.start) { in clusteredText()
738 return fCurrentRun->fTextRange.start; in clusteredText()
DParagraphImpl.cpp335 , fTextRange(text.begin() - fOwner->text().begin(), text.end() - fOwner->text().begin()) in Cluster()
353 for (auto i = fTextRange.start; i < fTextRange.end; ++i) { in Cluster()
363 fIsWhiteSpaceBreak = whiteSpacesBreakLen == fTextRange.width(); in Cluster()
364 fIsIntraWordBreak = intraWordBreakLen == fTextRange.width(); in Cluster()
365 fIsHardBreak = fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kHardLineBreakBefore); in Cluster()
501 fCodeUnitProperties[run.fTextRange.start] |= CodeUnitFlags::kGraphemeStart; in shapeTextIntoEndlessLine()
DTextLine.cpp93 , fTextRange(text) in TextLine()
580 handler.run()->fTextRange = TextRange(0, ellipsis.size()); in shapeEllipsis()
864 TextRange(fTextRange.end, fTextWithWhitespacesRange.end), run->fTextRange); in iterateThroughVisualRuns()
902 result.fStartIndex = fTextRange.start; in getMetrics()
904 result.fEndExcludingWhitespaces = fTextRange.end; in getMetrics()
1150 auto utf16Index = fOwner->getUTF16Index(this->fTextRange.end); in getGlyphPositionAtCoordinate()
DOneLineShaper.h46 , fText(fRun->fTextRange) in RunBlock()