Home
last modified time | relevance | path

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

12

/third_party/skia/modules/skparagraph/src/
DTextLine.cpp188 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
190 TextAdjustment::GlyphCluster, run, runOffsetInLine, textRange, StyleType::kBackground, in paint()
191 …[painter, x, y, run, this](TextRange textRange, const TextStyle& style, const ClipContext& context… in paint() argument
193 this->paintBackground(painter, x, y, textRange, style, context); in paint()
203 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
205 TextAdjustment::GlyphCluster, run, runOffsetInLine, textRange, StyleType::kShadow, in paint()
207 (TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() argument
208 this->paintShadow(painter, x, y, textRange, style, context); in paint()
223 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() argument
225 … TextAdjustment::GlyphCluster, run, runOffsetInLine, textRange, StyleType::kDecorations, in paint()
[all …]
DParagraphImpl.cpp123 void ParagraphImpl::addUnresolvedCodepoints(TextRange textRange) { in addUnresolvedCodepoints() argument
125 &fText[textRange.start], textRange.width(), in addUnresolvedCodepoints()
674 … fCodeUnitProperties[fRuns.back().textRange().end] |= SkUnicode::CodeUnitFlags::kGraphemeStart; in buildClusterTable()
675 … fCodeUnitProperties[fRuns.back().textRange().end] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
685 for (auto i = run.textRange().start; i < run.textRange().end; ++i) { in buildClusterTable()
689 …fClusters.emplace_back(this, runIndex, 0ul, 1ul, this->text(run.textRange()), run.advance().fX, ru… in buildClusterTable()
690 … fCodeUnitProperties[run.textRange().start] |= SkUnicode::CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
691 … fCodeUnitProperties[run.textRange().end] |= SkUnicode::CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
712 fCodeUnitProperties[run.textRange().start] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
774 auto textRange = TextRange(0, this->text().size()); in breakShapedTextIntoLines() local
[all …]
DTextLine.h90 const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* width)>;
93 TextRange textRange, const TextStyle& style, const ClipContext& context)>;
97 TextRange textRange,
121 void getRectsForRange(TextRange textRange,
128 ClipContext measureTextInsideOneRun(TextRange textRange,
155 void buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& context);
159 TextRange textRange,
166 TextRange textRange,
172 TextRange textRange,
DOneLineShaper.cpp46 if (fCurrentRun->textRange() == unresolved.fText) { in commitRunBuffer()
362 BlockRange OneLineShaper::generateBlockRange(const Block& block, const TextRange& textRange) in generateBlockRange() argument
364 size_t start = std::max(block.fRange.start, textRange.start); in generateBlockRange()
365 size_t end = std::min(block.fRange.end, textRange.end); in generateBlockRange()
374 void OneLineShaper::iterateThroughFontStyles(TextRange textRange, in iterateThroughFontStyles() argument
403 BlockRange blockRange = generateBlockRange(block, textRange); in iterateThroughFontStyles()
547 TextRange textRange(start, end); in iterateThroughShapingRegions() local
548 auto blockRange = fParagraph->findAllBlocks(textRange); in iterateThroughShapingRegions()
553 if (!shape(textRange, styleSpan, advanceX, start, bidiRegion.level)) { in iterateThroughShapingRegions()
615 …(TextRange textRange, SkSpan<Block> styleSpan, SkScalar& advanceX, TextIndex textStart, uint8_t de… in shape() argument
[all …]
DTextWrapper.cpp376 …Range textExcludingSpaces(fEndLine.startCluster()->textRange().start, fEndLine.endCluster()->textR… in moveForward()
377 …TextRange text(fEndLine.startCluster()->textRange().start, fEndLine.breakCluster()->textRange().st… in moveForward()
378 …TextRange textIncludingNewlines(fEndLine.startCluster()->textRange().start, startLine->textRange()… in moveForward()
519 addLine(fEndLine.breakCluster()->textRange(), in moveForward()
520 fEndLine.breakCluster()->textRange(), in moveForward()
521 fEndLine.endCluster()->textRange(), in moveForward()
DParagraphImpl.h59 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {} in StyleBlock()
149 SkTArray<TextIndex> countSurroundingGraphemes(TextRange textRange) const;
170 SkSpan<const char> text(TextRange textRange);
196 void addUnresolvedCodepoints(TextRange textRange);
234 BlockRange findAllBlocks(TextRange textRange);
DOneLineShaper.h57 … std::function<SkScalar(TextRange textRange, SkSpan<Block>, SkScalar&, TextIndex, uint8_t)>;
63 TextRange textRange, SkSpan<Block> styleSpan, const ShapeSingleFontVisitor& visitor);
106 BlockRange generateBlockRange(const Block& block, const TextRange& textRange);
DRun.h116 TextRange textRange() const { return fTextRange; } in textRange() function
320 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() argument
354 TextRange textRange() const { return fTextRange; } in textRange() function
/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/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
DInterface.h75 …TextRange textRange, // Currently we make sure that the run edges are the grapheme cluster … in onGlyphRun() argument
141 …itionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, SkRect rect);
/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()
DLine.h94 …Stretch(RunIndex runIndex, GlyphRange glyphRange, TextRange textRange, SkScalar width, const TextM… in Stretch() argument
98 , fTextRange(textRange) in Stretch()
155 TextRange textRange() const { return fTextRange; } in textRange() function
DPaint.cpp90 DecoratedBlock Paint::findDecoratedBlock(TextRange textRange) { in findDecoratedBlock() argument
93 if (start + block.charCount <= textRange.fStart) { in findDecoratedBlock()
96 } else if (start >= textRange.fEnd) { in findDecoratedBlock()
DVisualRun.h14 …VisualRun(TextRange textRange, GlyphIndex trailingSpacesStart, const SkFont& font, SkScalar lineBa… in VisualRun() argument
21 , fDirTextRange(textRange, leftToRight) in VisualRun()
/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.ts1099 public toggleLineComment(fileName: string, textRange: TextRange): string {
1101 `toggleLineComment('${fileName}', '${JSON.stringify(textRange)}')`,
1102 () => this.languageService.toggleLineComment(fileName, textRange)
1106 public toggleMultilineComment(fileName: string, textRange: TextRange): string {
1108 `toggleMultilineComment('${fileName}', '${JSON.stringify(textRange)}')`,
1109 () => this.languageService.toggleMultilineComment(fileName, textRange)
1113 public commentSelection(fileName: string, textRange: TextRange): string {
1115 `commentSelection('${fileName}', '${JSON.stringify(textRange)}')`,
1116 () => this.languageService.commentSelection(fileName, textRange)
1120 public uncommentSelection(fileName: string, textRange: TextRange): string {
[all …]
Dservices.ts2202 function getLinesForRange(sourceFile: SourceFile, textRange: TextRange) {
2205 firstLine: sourceFile.getLineAndCharacterOfPosition(textRange.pos).line,
2206 lastLine: sourceFile.getLineAndCharacterOfPosition(textRange.end).line
2210 …function toggleLineComment(fileName: string, textRange: TextRange, insertComment?: boolean): TextC…
2213 const { lineStarts, firstLine, lastLine } = getLinesForRange(sourceFile, textRange);
2241 if (firstLine !== lastLine && lineStarts[i] === textRange.end) {
2276 …function toggleMultilineComment(fileName: string, textRange: TextRange, insertComment?: boolean, i…
2285 let { pos } = textRange;
2294 while (pos <= textRange.end) {
2316 …const newPos = text.substring(pos, textRange.end).search(`(${openMultilineRegex})|(${closeMultilin…
[all …]
/third_party/skia/modules/skparagraph/include/
DParagraph.h153 FontInfo(const SkFont font, const TextRange textRange) in FontInfo()
154 : fFont(font), fTextRange(textRange) { } in FontInfo()
DTextStyle.h358 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block()
/third_party/skia/experimental/sktext/editor/
DEditor.cpp155 TextRange textRange = position.fTextRange; in deleteElement() local
162 textRange = position.fTextRange; in deleteElement()
168 fEditableText->removeElement(textRange); in deleteElement()
/third_party/typescript/src/harness/
DharnessLanguageService.ts654 toggleLineComment(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
655 return unwrapJSONCallResult(this.shim.toggleLineComment(fileName, textRange));
657 toggleMultilineComment(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
658 return unwrapJSONCallResult(this.shim.toggleMultilineComment(fileName, textRange));
660 commentSelection(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
661 return unwrapJSONCallResult(this.shim.commentSelection(fileName, textRange));
663 uncommentSelection(fileName: string, textRange: ts.TextRange): ts.TextChange[] {
664 return unwrapJSONCallResult(this.shim.uncommentSelection(fileName, textRange));

12