Home
last modified time | relevance | path

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

/third_party/skia/experimental/sktext/src/
DLine.h85 Stretch() : fGlyphStart(), fGlyphEnd(), fWidth(0), fTextRange(EMPTY_RANGE), fTextMetrics() { } in Stretch()
91 , fTextRange(textIndex, textIndex) in Stretch()
98 , fTextRange(textRange) in Stretch()
116 fTextRange.fStart = fTextRange.fEnd; in clean()
132 this->fTextRange = tail.fTextRange; in moveTo()
143 this->fTextRange.merge(tail.fTextRange); in moveTo()
149 this->fTextRange.fEnd = textIndex; in finish()
155 TextRange textRange() const { return fTextRange; } in textRange()
156 void setTextRange(TextRange range) { fTextRange = range; } in setTextRange()
162 size_t textStart() const { return fTextRange.fStart; } in textStart()
[all …]
DText.cpp695 position.fTextRange = line.fTextRange; in findPosition()
709 position.fTextRange.fStart = textIndex; in findPosition()
724 position.fTextRange.fEnd = textIndex; in findPosition()
772 … SkASSERT(this->hasProperty(current.fTextRange.fStart, GlyphUnitFlags::kGraphemeClusterStart)); in previousPosition()
794 SkASSERT(this->hasProperty(current.fTextRange.fEnd, GlyphUnitFlags::kGraphemeClusterStart)); in nextPosition()
811 SkASSERT(this->hasProperty(current.fTextRange.fEnd, GlyphUnitFlags::kGraphemeClusterStart)); in upPosition()
828 SkASSERT(this->hasProperty(current.fTextRange.fEnd, GlyphUnitFlags::kGraphemeClusterStart)); in downPosition()
841 beginningOfText.fTextRange = this->glyphsToText(beginningOfText); in firstPosition()
853 endOfText.fTextRange = this->glyphsToText(endOfText); in lastPosition()
/third_party/flutter/skia/modules/skparagraph/src/
DRun.h105 TextRange textRange() { return fTextRange; } in textRange()
154 TextRange fTextRange; variable
183 : fCodepointRange(codepoints), fTextRange(textRange) { } in Grapheme()
185 TextRange fTextRange; // Used for getRectsForRange member
203 , fTextRange(EMPTY_TEXT) in Cluster()
221 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster()
251 TextRange textRange() const { return fTextRange; } in textRange()
261 bool contains(TextIndex ch) const { return ch >= fTextRange.start && ch < fTextRange.end; } in contains()
264 return fTextRange.start >= text.start && fTextRange.end <= text.end; in belongs()
268 return fTextRange.start >= text.start && fTextRange.start < text.end; in startsIn()
[all …]
DRun.cpp26 , fTextRange(info.utf8Range.begin(), info.utf8Range.end()) in Run()
213 auto span = fMaster->text(fTextRange); in setIsWhiteSpaces()
225 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeToChar()
228 auto shift = ch - fTextRange.start; in sizeToChar()
229 auto ratio = shift * 1.0 / fTextRange.width(); in sizeToChar()
235 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeFromChar()
238 auto shift = fTextRange.end - ch - 1; in sizeFromChar()
239 auto ratio = shift * 1.0 / fTextRange.width(); in sizeFromChar()
280 , fTextRange(text.begin() - fMaster->text().begin(), text.end() - fMaster->text().begin()) in Cluster()
DTextLine.h34 TextRange trimmedText() const { return fTextRange; } in trimmedText()
40 bool empty() const { return fTextRange.empty(); } in empty()
106 return fTextRange.contains(cluster->textRange()); in contains()
111 TextRange fTextRange; variable
DFontResolver.h59 TextRange fTextRange; variable
DTextLine.cpp45 , fTextRange(text) in TextLine()
178 fTextRange, 0, false, in scanRuns()
524 handler.run()->fTextRange = TextRange(0, ellipsis.size()); in shapeEllipsis()
DFontResolver.cpp237 fTextRange = TextRange(0, fText.size()); in findAllFontsForAllStyledBlocks()
DParagraphImpl.cpp587 : fGraphemes[fCodePoints[end].fGrapeme].fTextRange.start; in getRectsForRange()
590 : fGraphemes[fCodePoints[start].fGrapeme].fTextRange.start; in getRectsForRange()
/third_party/skia/modules/skparagraph/src/
DRun.cpp26 , fTextRange(firstChar + info.utf8Range.begin(), firstChar + info.utf8Range.end()) in Run()
114 if (text.end > this->fTextRange.start) { in findLimitingClusters()
255 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeToChar()
258 auto shift = ch - fTextRange.start; in sizeToChar()
259 auto ratio = shift * 1.0 / fTextRange.width(); in sizeToChar()
265 if (ch < fTextRange.start || ch >= fTextRange.end) { in sizeFromChar()
268 auto shift = fTextRange.end - ch - 1; in sizeFromChar()
269 auto ratio = shift * 1.0 / fTextRange.width(); in sizeFromChar()
317 return fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kSoftLineBreakBefore); in isSoftBreak()
321 return fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kGraphemeStart); in isGraphemeBreak()
DRun.h108 TextRange textRange() const { return fTextRange; } in textRange()
177 TextRange fTextRange; variable
266 , fTextRange(EMPTY_TEXT) in Cluster()
283 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster()
314 TextRange textRange() const { return fTextRange; } in textRange()
325 bool contains(TextIndex ch) const { return ch >= fTextRange.start && ch < fTextRange.end; } in contains()
328 return fTextRange.start >= text.start && fTextRange.end <= text.end; in belongs()
332 return fTextRange.start >= text.start && fTextRange.start < text.end; in startsIn()
341 TextRange fTextRange; variable
DOneLineShaper.cpp86 TextRange resolvedTextLimits = fCurrentRun->fTextRange; in fillGaps()
254 : fCurrentRun->fTextRange.end); in normalizeTextRange()
263 this->fCurrentRun->fTextRange, in addFullyResolved()
272 SkASSERT(unresolved.fText.width() == fCurrentRun->fTextRange.width()); in addUnresolvedWithRun()
731 while (index < fCurrentRun->fTextRange.end) { in clusteredText()
738 return fCurrentRun->fTextRange.end; in clusteredText()
740 while (index > fCurrentRun->fTextRange.start) { in clusteredText()
747 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()
DOneLineShaper.h47 , fText(fRun->fTextRange) in RunBlock()
DTextLine.cpp584 handler.run()->fTextRange = TextRange(0, ellipsis.size()); in shapeEllipsis()
873 … TextRange(fTextExcludingSpaces.end, fTextIncludingNewlines.end), run->fTextRange); in iterateThroughVisualRuns()
/third_party/skia/experimental/sktext/tests/
DSelectableText.cpp135 REPORTER_ASSERT(reporter, boxLine.fTextRange == testLine.lineText); in UNIX_ONLY_TEST()
164 REPORTER_ASSERT(reporter, firstPosition.fTextRange == TextRange(0, 0)); in UNIX_ONLY_TEST()
176 REPORTER_ASSERT(reporter, lastPosition.fTextRange == TextRange(utf16.size(), utf16.size())); in UNIX_ONLY_TEST()
207 REPORTER_ASSERT(reporter, position.fTextRange.fEnd == next.fTextRange.fStart); in UNIX_ONLY_TEST()
248 REPORTER_ASSERT(reporter, position.fTextRange.fEnd == prev.fTextRange.fStart); in UNIX_ONLY_TEST()
/third_party/skia/experimental/sktext/editor/
DEditor.cpp155 TextRange textRange = position.fTextRange; in deleteElement()
162 textRange = position.fTextRange; in deleteElement()
183 fEditableText->insertElement(unichar, position.fTextRange.fStart); in insertCodepoint()
185 fEditableText->replaceElement(unichar, position.fTextRange); in insertCodepoint()
246 fEditableText->select(position.fTextRange, position.fBoundaries); in onMouse()
/third_party/skia/experimental/sktext/include/
DText.h280 , fTextRange(textRange) in Position()
289 TextRange fTextRange; member
295 : fTextRange(text), fIndex(index), fIsHardBreak(hardBreak), fBounds(bounds) { } in BoxLine()
300 TextRange fTextRange; member
DInterface.h146 TextRange fTextRange; member
155 TextRange fTextRange; member