/third_party/skia/modules/skparagraph/src/ |
D | TextLine.cpp | 188 (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 …]
|
D | ParagraphImpl.cpp | 123 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 …]
|
D | TextLine.h | 90 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,
|
D | OneLineShaper.cpp | 46 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 …]
|
D | TextWrapper.cpp | 376 …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()
|
D | ParagraphImpl.h | 59 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);
|
D | OneLineShaper.h | 57 … 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);
|
D | Run.h | 116 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/ |
D | FontResolvedText.cpp | 55 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/ |
D | Text.h | 58 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()
|
D | Types.h | 141 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
|
D | Interface.h | 75 …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/ |
D | Text.cpp | 89 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 …]
|
D | Line.cpp | 11 , fText(stretch.textRange()) in LogicalLine() 12 , fWhitespaces(spaces.textRange()) in LogicalLine()
|
D | Line.h | 94 …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
|
D | Paint.cpp | 90 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()
|
D | VisualRun.h | 14 …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/ |
D | textapi_utils.js | 116 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/ |
D | textapi_utils.js | 116 : 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/ |
D | shims.ts | 1099 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 …]
|
D | services.ts | 2202 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/ |
D | Paragraph.h | 153 FontInfo(const SkFont font, const TextRange textRange) in FontInfo() 154 : fFont(font), fTextRange(textRange) { } in FontInfo()
|
D | TextStyle.h | 358 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block()
|
/third_party/skia/experimental/sktext/editor/ |
D | Editor.cpp | 155 TextRange textRange = position.fTextRange; in deleteElement() local 162 textRange = position.fTextRange; in deleteElement() 168 fEditableText->removeElement(textRange); in deleteElement()
|
/third_party/typescript/src/harness/ |
D | harnessLanguageService.ts | 654 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));
|