Home
last modified time | relevance | path

Searched refs:textRange (Results 1 – 21 of 21) sorted by relevance

/external/skia/modules/skparagraph/src/
DTextLine.cpp172 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
174 run, runOffsetInLine, textRange, StyleType::kBackground, in paint()
175 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
176 this->paintBackground(textCanvas, x, y, textRange, style, context); in paint()
185 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
187 run, runOffsetInLine, textRange, StyleType::kShadow, in paint()
188 …[textCanvas, x, y, &bounds, this](TextRange textRange, const TextStyle& style, const ClipContext& … in paint() argument
189 … auto shadowBounds = this->paintShadow(textCanvas, x, y, textRange, style, context); in paint()
208 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
210 run, runOffsetInLine, textRange, StyleType::kDecorations, in paint()
[all …]
DTextLine.h77 …using RunVisitor = std::function<bool(const Run* run, SkScalar runOffset, TextRange textRange, SkS…
79 …using RunStyleVisitor = std::function<void(TextRange textRange, const TextStyle& style, const Clip…
80 … SkScalar iterateThroughSingleRunByStyles(const Run* run, SkScalar runOffset, TextRange textRange,
101 …void getRectsForRange(TextRange textRange, RectHeightStyle rectHeightStyle, RectWidthStyle rectWid…
105 ClipContext measureTextInsideOneRun(TextRange textRange,
126 void buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& context);
127 …void paintBackground(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const TextStyl…
128 …SkRect paintShadow(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const TextStyle&…
129 …void paintDecorations(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const TextSty…
DOneLineShaper.cpp43 if (fCurrentRun->textRange() == unresolved.fText) { in commitRunBuffer()
425 void OneLineShaper::iterateThroughFontStyles(TextRange textRange, in iterateThroughFontStyles() argument
448 …ockRange blockRange(std::max(block.fRange.start, textRange.start), std::min(block.fRange.end, text… in iterateThroughFontStyles()
563 TextRange textRange(start, end); in iterateThroughShapingRegions() local
564 auto blockRange = fParagraph->findAllBlocks(textRange); in iterateThroughShapingRegions()
568 if (!shape(textRange, styleSpan, advanceX, start, bidiRegion.level)) { in iterateThroughShapingRegions()
623 …(TextRange textRange, SkSpan<Block> styleSpan, SkScalar& advanceX, TextIndex textStart, uint8_t de… in shape() argument
632 iterateThroughFontStyles(textRange, styleSpan, in shape()
742 TextRange textRange(normalizeTextRange(glyphs)); in clusteredText() local
743 textRange.start = findBaseChar(textRange.start, Dir::left); in clusteredText()
[all …]
DParagraphImpl.cpp398 for (auto i = run.textRange().start; i < run.textRange().end; ++i) { in buildClusterTable()
402 …fClusters.emplace_back(this, runIndex, 0ul, 1ul, this->text(run.textRange()), run.advance().fX, ru… in buildClusterTable()
403 fCodeUnitProperties[run.textRange().start] |= CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
404 fCodeUnitProperties[run.textRange().end] |= CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
614 BlockRange ParagraphImpl::findAllBlocks(TextRange textRange) { in findAllBlocks() argument
619 if (block.fRange.end <= textRange.start) { in findAllBlocks()
622 if (block.fRange.start >= textRange.end) { in findAllBlocks()
812 SkSpan<const char> ParagraphImpl::text(TextRange textRange) { in text() argument
813 SkASSERT(textRange.start <= fText.size() && textRange.end <= fText.size()); in text()
814 auto start = fText.c_str() + textRange.start; in text()
[all …]
DTextWrapper.cpp338 …TextRange text(fEndLine.startCluster()->textRange().start, fEndLine.endCluster()->textRange().end); in breakTextIntoLines()
339 …TextRange textWithSpaces(fEndLine.startCluster()->textRange().start, startLine->textRange().start); in breakTextIntoLines()
458 addLine(fEndLine.breakCluster()->textRange(), in breakTextIntoLines()
459 fEndLine.endCluster()->textRange(), in breakTextIntoLines()
DParagraphImpl.h72 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {}
164 SkSpan<const char> text(TextRange textRange);
214 BlockRange findAllBlocks(TextRange textRange);
DOneLineShaper.h56 … std::function<SkScalar(TextRange textRange, SkSpan<Block>, SkScalar&, TextIndex, uint8_t)>;
60 …void iterateThroughFontStyles(TextRange textRange, SkSpan<Block> styleSpan, const ShapeSingleFontV…
DRun.h106 TextRange textRange() const { return fTextRange; } in textRange() function
280 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() argument
310 TextRange textRange() const { return fTextRange; } in textRange() function
/external/skia/experimental/sktext/src/
DWrapper.cpp14 GlyphRange Wrapper::glyphRange(const TextRun* run, const TextRange& textRange) { in glyphRange() argument
18 if (cluster < textRange.fStart) continue; in glyphRange()
19 if (cluster > textRange.fEnd) break; in glyphRange()
29 TextRange Wrapper::textRange(const TextRun* run, const GlyphRange& glyphRange) { in textRange() function in skia::text::Wrapper
30 Range textRange = EMPTY_RANGE; in textRange() local
36 if (textRange.fStart == EMPTY_INDEX) { in textRange()
37 textRange.fStart = cluster; in textRange()
39 textRange.fEnd = cluster; in textRange()
41 return textRange; in textRange()
76 auto isWhitespaces = fProcessor->isWhitespaces(cluster.textRange()); in breakTextIntoLines()
DProcessor.cpp58 …[&](SkSize offset, SkScalar baseline, const TextRun* run, TextRange textRange, GlyphRange glyphRan… in decorate() argument
92 TextRange textRange(0, str.size()); in drawText() local
97 …aultTextDirection, SkFontMgr::RefDefault()}, {{{ fontFamily, fontSize, fontStyle, textRange }}})) { in drawText()
109 if (!processor.decorate({{{&foregroundPaint, &backgroundPaint, textRange}}})) { in drawText()
218 Range textRange(run.fUtf8Range.begin(), run.fUtf8Range.end()); in iterateByVisualOrder() local
225 textRange.fEnd = textIndex; in iterateByVisualOrder()
227 …visitor(offset, line.fTextMetrics.baseline(), &run, textRange, glyphRange, this->fCodeUnitProperti… in iterateByVisualOrder()
228 textRange.fStart = textIndex; in iterateByVisualOrder()
263 TextRange textRange(run.fClusters[startGlyph], run.fClusters[endGlyph]); in iterateByVisualOrder() local
266 SkASSERT(currentBlock->fRange.fStart <= textRange.fStart); in iterateByVisualOrder()
[all …]
DWrapper.h28 static GlyphRange glyphRange(const TextRun* run, const TextRange& textRange);
29 static TextRange textRange(const TextRun* run, const GlyphRange& glyphRange);
DLine.cpp14 , fText(stretch.textRange()) in Line()
15 , fWhitespaces(spaces.textRange()) in Line()
DLine.h149 TextRange textRange() const { return fTextRange; } in textRange() function
/external/skia/modules/canvaskit/npm_build/
Dtextapi_utils.js116 return lines[lines.length - 1].textRange.last;
141 if (index <= l.textRange.last) {
155 if (index <= l.textRange.last) {
376 r.textRange = { start: r.offsets[0], end: r.offsets[r.offsets.length-1] };
449 while (r.textRange.end <= start) {
462 end = Math.min(r.textRange.end, s_end);
465 'from run', r.textRange.start, r.textRange.end,
469 if (r.textRange.start >= end) {
482 if (start > r.textRange.start || end < r.textRange.end) {
/external/google-java-format/idea_plugin/src/com/google/googlejavaformat/intellij/
DFormatterUtil.java55 .map(textRange -> Range.closedOpen(textRange.getStartOffset(), textRange.getEndOffset())) in toRanges()
/external/skia/demos.skia.org/demos/textedit/
Dtextapi_utils.js116 : lines[lines.length - 1].textRange.last;
133 const l = lines.findIndex((l) => index <= l.textRange.last);
352 r.textRange = { start: r.offsets[0], end: r.offsets[r.offsets.length-1] };
433 while (r.textRange.end <= start) {
446 end = Math.min(r.textRange.end, s_end);
449 'from run', r.textRange.start, r.textRange.end,
453 if (r.textRange.start >= end) {
467 if (start > r.textRange.start || end < r.textRange.end) {
/external/dokka/core/src/main/kotlin/Model/
DSourceLinks.kt49 return doc?.getLineNumber(textRange.startOffset)?.plus(1) in lineNumber()
54 val lineNumber = doc.getLineNumber(textRange.startOffset) in columnNumber()
/external/skia/modules/skparagraph/include/
DTextStyle.h298 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block()
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp215 … (TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in DEF_TEST() argument
997 …[reporter, &index](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& conte… in DEF_TEST() argument
1087 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in DEF_TEST() argument
1091 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text1)); in DEF_TEST()
1095 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text2)); in DEF_TEST()
1099 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text3)); in DEF_TEST()
1103 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text41)); in DEF_TEST()
1114 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in DEF_TEST() argument
1118 REPORTER_ASSERT(reporter, equal(impl->text().begin(), textRange, text42)); in DEF_TEST()
1160 [&](TextRange textRange, const TextStyle& style, const TextLine::ClipContext& context) { in DEF_TEST() argument
[all …]
/external/skia/modules/skparagraph/samples/
DSampleParagraph.cpp2079 [&](const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* width) { in onDrawContent() argument
2080 … *width = line.measureTextInsideOneRun(textRange, run, runOffset, 0, true, false).clip.width(); in onDrawContent()
2083textRange.start, textRange.end, runOffset, *width, run->leftToRight() ? "left" : "right"); in onDrawContent()
2575 cluster.textRange().start, cluster.textRange().end, in onDrawContent()
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts684 textRange: Range; // first and last character offsets for the line (derived from runs[]) property