Home
last modified time | relevance | path

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

123

/third_party/skia/modules/skparagraph/src/
DTextLine.cpp174 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
176 run, runOffsetInLine, textRange, StyleType::kBackground, in paint()
177 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
178 this->paintBackground(textCanvas, x, y, textRange, style, context); in paint()
187 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
189 run, runOffsetInLine, textRange, StyleType::kShadow, in paint()
190 …[textCanvas, x, y, &bounds, this](TextRange textRange, const TextStyle& style, const ClipContext& … in paint() argument
191 … auto shadowBounds = this->paintShadow(textCanvas, x, y, textRange, style, context); in paint()
210 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
212 run, runOffsetInLine, textRange, StyleType::kDecorations, in paint()
[all …]
DTextLine.h80 …using RunVisitor = std::function<bool(const Run* run, SkScalar runOffset, TextRange textRange, SkS…
82 …using RunStyleVisitor = std::function<void(TextRange textRange, const TextStyle& style, const Clip…
83 … SkScalar iterateThroughSingleRunByStyles(const Run* run, SkScalar runOffset, TextRange textRange,
104 …void getRectsForRange(TextRange textRange, RectHeightStyle rectHeightStyle, RectWidthStyle rectWid…
108 ClipContext measureTextInsideOneRun(TextRange textRange,
129 void buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& context);
130 …void paintBackground(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const TextStyl…
131 …SkRect paintShadow(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const TextStyle&…
132 …void paintDecorations(SkCanvas* canvas, SkScalar x, SkScalar y, TextRange textRange, const TextSty…
DOneLineShaper.cpp43 if (fCurrentRun->textRange() == unresolved.fText) { in commitRunBuffer()
427 void OneLineShaper::iterateThroughFontStyles(TextRange textRange, in iterateThroughFontStyles() argument
450 …ockRange blockRange(std::max(block.fRange.start, textRange.start), std::min(block.fRange.end, text… in iterateThroughFontStyles()
570 TextRange textRange(start, end); in iterateThroughShapingRegions() local
571 auto blockRange = fParagraph->findAllBlocks(textRange); in iterateThroughShapingRegions()
575 if (!shape(textRange, styleSpan, advanceX, start, bidiRegion.level)) { in iterateThroughShapingRegions()
631 …(TextRange textRange, SkSpan<Block> styleSpan, SkScalar& advanceX, TextIndex textStart, uint8_t de… in shape() argument
640 iterateThroughFontStyles(textRange, styleSpan, in shape()
751 TextRange textRange(normalizeTextRange(glyphs)); in clusteredText() local
752 textRange.start = findBaseChar(textRange.start, Dir::left); in clusteredText()
[all …]
DTextWrapper.cpp345 …Range textExcludingSpaces(fEndLine.startCluster()->textRange().start, fEndLine.endCluster()->textR… in breakTextIntoLines()
346 …TextRange text(fEndLine.startCluster()->textRange().start, fEndLine.breakCluster()->textRange().st… in breakTextIntoLines()
347 …TextRange textIncludingNewlines(fEndLine.startCluster()->textRange().start, startLine->textRange()… in breakTextIntoLines()
472 addLine(fEndLine.breakCluster()->textRange(), in breakTextIntoLines()
473 fEndLine.breakCluster()->textRange(), in breakTextIntoLines()
474 fEndLine.endCluster()->textRange(), in breakTextIntoLines()
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()
615 BlockRange ParagraphImpl::findAllBlocks(TextRange textRange) { in findAllBlocks() argument
620 if (block.fRange.end <= textRange.start) { in findAllBlocks()
623 if (block.fRange.start >= textRange.end) { in findAllBlocks()
816 SkSpan<const char> ParagraphImpl::text(TextRange textRange) { in text() argument
817 SkASSERT(textRange.start <= fText.size() && textRange.end <= fText.size()); in text()
818 auto start = fText.c_str() + textRange.start; in text()
[all …]
DParagraphImpl.h72 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {}
165 SkSpan<const char> text(TextRange textRange);
215 BlockRange findAllBlocks(TextRange textRange);
/third_party/flutter/skia/modules/skparagraph/src/
DTextLine.cpp104 [this, textCanvas](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
105 return this->paintBackground(textCanvas, textRange, style, offsetX); in paint()
112 [textCanvas, this](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
113 return this->paintShadow(textCanvas, textRange, style, offsetX); in paint()
119 [textCanvas, this](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
120 return this->paintText(textCanvas, textRange, style, offsetX); in paint()
126 [textCanvas, this](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in paint() argument
127 return this->paintDecorations(textCanvas, textRange, style, offsetX); in paint()
168 style, [this, visitor](TextRange textRange, const TextStyle& style, SkScalar offsetX) { in scanStyles() argument
169 visitor(textRange, style, offsetX); in scanStyles()
[all …]
DTextLine.h55 using StyleVisitor = std::function<SkScalar(TextRange textRange, const TextStyle& style,
59 SkScalar calculateLeftVisualOffset(TextRange textRange) const;
63 SkScalar iterateThroughRuns(TextRange textRange,
87 SkRect measureTextInsideOneRun(TextRange textRange,
94 …SkScalar paintText(SkCanvas* canvas, TextRange textRange, const TextStyle& style, SkScalar offsetX…
95 SkScalar paintBackground(SkCanvas* canvas, TextRange textRange, const TextStyle& style,
97 SkScalar paintShadow(SkCanvas* canvas, TextRange textRange, const TextStyle& style,
99 SkScalar paintDecorations(SkCanvas* canvas, TextRange textRange, const TextStyle& style,
106 return fTextRange.contains(cluster->textRange()); in contains()
DTextWrapper.cpp185 …TextRange text(fEndLine.startCluster()->textRange().start, fEndLine.endCluster()->textRange().end … in breakTextIntoLines()
186 …TextRange textWithSpaces(fEndLine.startCluster()->textRange().start, startLine->textRange().start); in breakTextIntoLines()
188 textWithSpaces.end = fEndLine.breakCluster()->textRange().start; in breakTextIntoLines()
190 textWithSpaces.end = fEndLine.breakCluster()->textRange().end; in breakTextIntoLines()
223 …TextRange empty(fEndLine.breakCluster()->textRange().start, fEndLine.breakCluster()->textRange().s… in breakTextIntoLines()
224 …TextRange hardBreak(fEndLine.breakCluster()->textRange().end, fEndLine.breakCluster()->textRange()… in breakTextIntoLines()
DRun.h105 TextRange textRange() { return fTextRange; } in textRange() function
182 Grapheme(CodepointRange codepoints, TextRange textRange) in Grapheme()
183 : fCodepointRange(codepoints), fTextRange(textRange) { } in Grapheme()
221 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() argument
251 TextRange textRange() const { return fTextRange; } in textRange() function
DParagraphImpl.h32 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {} in StyleBlock()
130 SkSpan<const char> text(TextRange textRange);
159 BlockRange findAllBlocks(TextRange textRange);
DParagraphImpl.cpp261 if (current->textRange().end > currentPos) { in markLineBreaks()
263 } else if (current->textRange().end == currentPos) { in markLineBreaks()
491 BlockRange ParagraphImpl::findAllBlocks(TextRange textRange) { in findAllBlocks() argument
496 if (block.fRange.end <= textRange.start) { in findAllBlocks()
499 if (block.fRange.start >= textRange.end) { in findAllBlocks()
820 SkSpan<const char> ParagraphImpl::text(TextRange textRange) { in text() argument
821 SkASSERT(textRange.start < fText.size() && textRange.end <= fText.size()); in text()
822 return SkSpan<const char>(&fText[textRange.start], textRange.width()); in text()
/third_party/skia/experimental/sktext/tests/
DFontResolvedText.cpp55 REPORTER_ASSERT(reporter, resolvedFonts.front().textRange.width() == utf16.size()); in UNIX_ONLY_TEST()
76 REPORTER_ASSERT(reporter, prev == rf.textRange.fStart); in UNIX_ONLY_TEST()
77 REPORTER_ASSERT(reporter, rf.textRange.width() > 0.0f); in UNIX_ONLY_TEST()
78 prev = rf.textRange.fEnd; in UNIX_ONLY_TEST()
82 REPORTER_ASSERT(reporter, resolvedFonts[0].textRange.fStart == 0); in UNIX_ONLY_TEST()
83 REPORTER_ASSERT(reporter, resolvedFonts[7].textRange.fEnd == utf16.size()); in UNIX_ONLY_TEST()
/third_party/mingw-w64/mingw-w64-headers/include/
Ddwrite_1.h727 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
730 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
733 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
736 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
739 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
742 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
745 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
748 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
751 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
754 DWRITE_TEXT_RANGE textRange) PURE; in DECLARE_INTERFACE_()
[all …]
Ddwrite.h1970 DWRITE_TEXT_RANGE textRange) PURE;
1973 DWRITE_TEXT_RANGE textRange) PURE;
1976 DWRITE_TEXT_RANGE textRange) PURE;
1979 DWRITE_TEXT_RANGE textRange) PURE;
1982 DWRITE_TEXT_RANGE textRange) PURE;
1985 DWRITE_TEXT_RANGE textRange) PURE;
1988 DWRITE_TEXT_RANGE textRange) PURE;
1991 DWRITE_TEXT_RANGE textRange) PURE;
1994 DWRITE_TEXT_RANGE textRange) PURE;
1997 DWRITE_TEXT_RANGE textRange) PURE;
[all …]
/third_party/typescript_eslint/packages/eslint-plugin/src/rules/
Dbrace-style.ts70 const textRange: TSESTree.Range = [ constant
75 textRange[0],
76 textRange[1],
83 return fixer.replaceTextRange(textRange, ' ');
Dconsistent-type-imports.ts435 const { removeRange, textRange } = getNamedSpecifierRanges( constant
441 typeNamedSpecifiersTexts.push(sourceCode.text.slice(...textRange));
457 textRange: TSESTree.Range;
463 const textRange: TSESTree.Range = [...removeRange]; constant
465 textRange[0] = before.range[1];
476 textRange[1] = after.range[0];
484 textRange,
/third_party/skia/experimental/sktext/include/
DText.h58 void forEachGrapheme(TextRange textRange, Callback&& callback) { in forEachGrapheme() argument
59 TextRange grapheme(textRange.fStart, textRange.fStart); in forEachGrapheme()
60 for (size_t i = textRange.fStart; i < textRange.fEnd; ++i) { in forEachGrapheme()
75 grapheme.fEnd = textRange.fEnd; in forEachGrapheme()
108 bool resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain& fontChain);
236 static SkSpan<TextIndex> limitBlocks(TextRange textRange, SkSpan<TextIndex> blocks);
276 …sitionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, SkRect rect) in Position()
280 , fTextRange(textRange) in Position()
DTypes.h141 DirTextRange(TextRange textRange, bool leftToRight) in DirTextRange()
142 : TextRange(textRange) in DirTextRange()
210 …ResolvedFontBlock(TextRange textRange, sk_sp<SkTypeface> typeface, SkScalar size, SkFontStyle font… in ResolvedFontBlock()
211 : textRange(textRange) in ResolvedFontBlock()
216 TextRange textRange; member
/third_party/skia/experimental/sktext/src/
DText.cpp89 return a.textRange.fStart < b.textRange.fStart; in resolveFonts()
100 bool FontResolvedText::resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain&… in resolveChain() argument
103 unresolvedTexts.push_back(textRange); in resolveChain()
174 , fCurrentFontIndex(fCurrentBlock->textRange.fEnd) { in FormattingFontIterator()
189 fCurrentFontIndex = fCurrentBlock->textRange.fEnd; in consume()
264 TextRange text8(UTF8FromUTF16[fb.textRange.fStart], UTF8FromUTF16[fb.textRange.fEnd]); in shape()
374 auto isWhitespaces = unicodeText->isWhitespaces(cluster.textRange()); in wrap()
479 … auto textStart = isFirstRun ? lineStretch.textRange().fStart : logicalRun.fUtf16Range.fStart; in addLine()
480 auto textEnd = isLastRun ? lineStretch.textRange().fEnd : logicalRun.fUtf16Range.fEnd; in addLine()
496 …wrappedText->fVisualLines.emplace_back(lineStretch.textRange(), hardLineBreak, wrappedText->fActua… in addLine()
[all …]
DLine.cpp11 , fText(stretch.textRange()) in LogicalLine()
12 , fWhitespaces(spaces.textRange()) in LogicalLine()
/third_party/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) {
380 r.textRange = { start: r.offsets[0], end: r.offsets[r.offsets.length-1] };
453 while (r.textRange.end <= start) {
466 end = Math.min(r.textRange.end, s_end);
469 'from run', r.textRange.start, r.textRange.end,
473 if (r.textRange.start >= end) {
486 if (start > r.textRange.start || end < r.textRange.end) {
/third_party/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);
355 r.textRange = { start: r.offsets[0], end: r.offsets[r.offsets.length-1] };
436 while (r.textRange.end <= start) {
449 end = Math.min(r.textRange.end, s_end);
452 'from run', r.textRange.start, r.textRange.end,
456 if (r.textRange.start >= end) {
470 if (start > r.textRange.start || end < r.textRange.end) {
/third_party/typescript/src/services/
Dshims.ts1090 public toggleLineComment(fileName: string, textRange: TextRange): string {
1092 `toggleLineComment('${fileName}', '${JSON.stringify(textRange)}')`,
1093 () => this.languageService.toggleLineComment(fileName, textRange)
1097 public toggleMultilineComment(fileName: string, textRange: TextRange): string {
1099 `toggleMultilineComment('${fileName}', '${JSON.stringify(textRange)}')`,
1100 () => this.languageService.toggleMultilineComment(fileName, textRange)
1104 public commentSelection(fileName: string, textRange: TextRange): string {
1106 `commentSelection('${fileName}', '${JSON.stringify(textRange)}')`,
1107 () => this.languageService.commentSelection(fileName, textRange)
1111 public uncommentSelection(fileName: string, textRange: TextRange): string {
[all …]
Dservices.ts2069 function getLinesForRange(sourceFile: SourceFile, textRange: TextRange) {
2072 firstLine: sourceFile.getLineAndCharacterOfPosition(textRange.pos).line,
2073 lastLine: sourceFile.getLineAndCharacterOfPosition(textRange.end).line
2077 …function toggleLineComment(fileName: string, textRange: TextRange, insertComment?: boolean): TextC…
2080 const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
2108 if (firstLine !== lastLine && lineStarts[i] === textRange.end) {
2143 …function toggleMultilineComment(fileName: string, textRange: TextRange, insertComment?: boolean, i…
2152 let { pos } = textRange;
2161 while (pos <= textRange.end) {
2183 …const newPos = text.substring(pos, textRange.end).search(`(${openMultilineRegex})|(${closeMultilin…
[all …]

123