/third_party/skia/modules/skparagraph/src/ |
D | TextLine.h | 61 TextRange textExcludingSpaces, 62 TextRange text, 63 TextRange textIncludingNewlines, 69 TextRange trimmedText() const { return fTextExcludingSpaces; } in trimmedText() 70 TextRange textWithNewlines() const { return fTextIncludingNewlines; } in textWithNewlines() 71 TextRange text() const { return fText; } in text() 91 const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* width)>; 94 TextRange textRange, const TextStyle& style, const ClipContext& context)>; 98 TextRange textRange, 123 void getRectsForRange(TextRange textRange, [all …]
|
D | ParagraphImpl.h | 56 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {} in StyleBlock() 57 void add(TextRange tail) { in add() 59 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add() 61 TextRange fRange; 135 … TextRange textExcludingSpaces, TextRange text, TextRange textIncludingNewlines, 154 SkTArray<TextIndex> countSurroundingGraphemes(TextRange textRange) const; 176 SkSpan<const char> text(TextRange textRange); 202 void addUnresolvedCodepoints(TextRange textRange); 229 TextRange getActualTextRange(int lineNumber, bool includeSpaces) const override; 244 BlockRange findAllBlocks(TextRange textRange); [all …]
|
D | OneLineShaper.h | 37 explicit RunBlock(TextRange text) : fRun(nullptr), fText(text) { } in RunBlock() 39 RunBlock(std::shared_ptr<Run> run, TextRange text, GlyphRange glyphs, size_t score) in RunBlock() 51 TextRange fText; 57 … std::function<SkScalar(TextRange textRange, SkSpan<Block>, SkScalar&, TextIndex, uint8_t)>; 63 TextRange textRange, SkSpan<Block> styleSpan, const ShapeSingleFontVisitor& visitor); 101 TextRange clusteredText(GlyphRange& glyphs); 110 BlockRange generateBlockRange(const Block& block, const TextRange& textRange); 113 TextRange fCurrentText;
|
D | TextLine.cpp | 43 TextRange intersected(const TextRange& a, const TextRange& b) { in intersected() 47 return end >= begin ? TextRange(begin, end) : EMPTY_TEXT; in intersected() 55 TextRange operator*(const TextRange& a, const TextRange& b) { in operator *() 59 return end > begin ? TextRange(begin, end) : EMPTY_TEXT; in operator *() 107 TextRange textExcludingSpaces, in TextLine() 108 TextRange text, in TextLine() 109 TextRange textIncludingNewlines, in TextLine() 203 (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() 206 …[painter, x, y, run, this](TextRange textRange, const TextStyle& style, const ClipContext& context… in paint() 218 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() [all …]
|
D | ParagraphImpl.cpp | 51 TextRange operator*(const TextRange& a, const TextRange& b) { in operator *() 55 return end > begin ? TextRange(begin, end) : EMPTY_TEXT; in operator *() 58 TextRange textRangeMergeBtoA(const TextRange& a, const TextRange& b) { in textRangeMergeBtoA() 63 return TextRange(std::min(a.start, b.start), std::max(a.end, b.end)); in textRangeMergeBtoA() 180 void ParagraphImpl::addUnresolvedCodepoints(TextRange textRange) { in GetLineFontMetrics() 189 TextRange ParagraphImpl::resetRangeWithDeletedRange(const TextRange& sourceRange, in GetLineFontMetrics() 190 const TextRange& deletedRange, const size_t& ellSize) in GetLineFontMetrics() 198 return TextRange(sourceRange.start + changeSize, sourceRange.end + changeSize); in GetLineFontMetrics() 201 TextRange target; in GetLineFontMetrics() 207 void ParagraphImpl::resetTextStyleRange(const TextRange& deletedRange) in GetLineFontMetrics() [all …]
|
D | Run.h | 121 TextRange textRange() const { return fTextRange; } in textRange() 162 std::tuple<bool, ClusterIndex, ClusterIndex> findLimitingClusters(TextRange text) const; 163 std::tuple<bool, TextIndex, TextIndex> findLimitingGlyphClusters(TextRange text) const; 164 std::tuple<bool, TextIndex, TextIndex> findLimitingGraphemes(TextRange text) const; 209 TextRange fTextRange; 338 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() 372 TextRange textRange() const { return fTextRange; } in textRange() 389 bool belongs(TextRange text) const { in belongs() 393 bool startsIn(TextRange text) const { in startsIn() 403 TextRange fTextRange;
|
D | OneLineShaper.cpp | 89 TextRange resolvedTextLimits = fCurrentRun->fTextRange; in fillGaps() 99 TextRange prevText = EMPTY_TEXT; in fillGaps() 111 …TextRange resolvedText(resolvedTextStart, fCurrentRun->leftToRight() ? unresolved.fText.start : un… in fillGaps() 138 TextRange resolvedText(resolvedTextStart,resolvedTextLimits.end); in fillGaps() 250 TextRange OneLineShaper::normalizeTextRange(GlyphRange glyphRange) { in normalizeTextRange() 253 return TextRange(clusterIndex(glyphRange.start), clusterIndex(glyphRange.end)); in normalizeTextRange() 255 return TextRange(clusterIndex(glyphRange.end - 1), in normalizeTextRange() 362 BlockRange OneLineShaper::generateBlockRange(const Block& block, const TextRange& textRange) in generateBlockRange() 374 void OneLineShaper::iterateThroughFontStyles(TextRange textRange, in iterateThroughFontStyles() 574 TextRange textRange(start, end); [all …]
|
D | TextWrapper.h | 171 using AddLineToParagraph = std::function<void(TextRange textExcludingSpaces, 172 TextRange text, 173 TextRange textIncludingNewlines,
|
/third_party/skia/experimental/sktext/include/ |
D | Interface.h | 41 bool isWhitespaces(TextRange range) const; 72 virtual void onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) { } in onBeginLine() 73 …virtual void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCo… in onEndLine() 75 …TextRange textRange, // Currently we make sure that the run edges are the grapheme cluster … in onGlyphRun() 83 virtual void onPlaceholder(TextRange, const SkRect& bounds) { } in onPlaceholder() argument 141 …Position(PositionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, … 146 TextRange fTextRange; 150 BoxLine(size_t index, TextRange text, bool hardBreak, SkRect bounds); 155 TextRange fTextRange;
|
D | Types.h | 138 typedef Range<TextIndex> TextRange; typedef 140 struct DirTextRange : public TextRange { 141 DirTextRange(TextRange textRange, bool leftToRight) in DirTextRange() 142 : TextRange(textRange) in DirTextRange() 145 : TextRange(start, end) in DirTextRange() 160 TextRange normalized() const { in normalized() 161 return fLeftToRight ? TextRange(fStart, fEnd) : TextRange(fEnd, fStart); in normalized() 210 …ResolvedFontBlock(TextRange textRange, sk_sp<SkTypeface> typeface, SkScalar size, SkFontStyle font… in ResolvedFontBlock() 216 TextRange textRange;
|
D | Text.h | 52 bool isWhitespaces(TextRange range) const; 58 void forEachGrapheme(TextRange textRange, Callback&& callback) { in forEachGrapheme() 59 TextRange grapheme(textRange.fStart, textRange.fStart); in forEachGrapheme() 108 bool resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain& fontChain); 174 virtual void onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) { } in onBeginLine() 175 …virtual void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCo… in onEndLine() 185 virtual void onPlaceholder(TextRange, const SkRect& bounds) { } in onPlaceholder() argument 236 static SkSpan<TextIndex> limitBlocks(TextRange textRange, SkSpan<TextIndex> blocks); 276 …Position(PositionType positionType, size_t lineIndex, GlyphRange glyphRange, TextRange textRange, … in Position() 289 TextRange fTextRange; [all …]
|
/third_party/skia/experimental/sktext/src/ |
D | Line.h | 94 …Stretch(RunIndex runIndex, GlyphRange glyphRange, TextRange textRange, SkScalar width, const TextM… in Stretch() 155 TextRange textRange() const { return fTextRange; } in textRange() 156 void setTextRange(TextRange range) { fTextRange = range; } in setTextRange() 168 TextRange fTextRange; 187 TextRange text() const { return fText; } in text() 188 TextRange whitespaces() const { return fWhitespaces; } in whitespaces() 197 TextRange fText; 198 TextRange fWhitespaces;
|
D | VisualRun.h | 14 …VisualRun(TextRange textRange, GlyphIndex trailingSpacesStart, const SkFont& font, SkScalar lineBa… in VisualRun() 100 VisualLine(TextRange text, bool hardLineBreak, SkScalar verticalOffset, SkSpan<VisualRun> runs) in VisualLine() 124 TextRange text() const { return fText; } in text() 134 TextRange fText;
|
D | Text.cpp | 21 bool UnicodeText::isWhitespaces(TextRange range) const { in isWhitespaces() 67 TextRange adjustedBlock(0, 0); in resolveFonts() 100 bool FontResolvedText::resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain&… in resolveChain() 102 std::deque<TextRange> unresolvedTexts; in resolveChain() 107 std::deque<TextRange> newUnresolvedTexts; in resolveChain() 116 unicodeText->forEachGrapheme(unresolvedText, [&](TextRange grapheme) { in resolveChain() 134 TextRange resolvedText(unresolvedText.fStart, unresolvedText.fStart); in resolveChain() 264 TextRange text8(UTF8FromUTF16[fb.textRange.fStart], UTF8FromUTF16[fb.textRange.fEnd]); in shape() 481 wrappedText->fVisualRuns.emplace_back(TextRange(textStart, textEnd), in addLine() 553 SkSpan<TextIndex> WrappedText::limitBlocks(TextRange textRange, SkSpan<TextIndex> blocks) { in limitBlocks() [all …]
|
D | LogicalRun.h | 24 TextRange getTextRange() const { return fUtf16Range; } in getTextRange() 74 TextRange fUtf16Range;
|
/third_party/skia/modules/skparagraph/include/ |
D | Paragraph.h | 129 virtual TextRange getActualTextRange(int lineNumber, bool includeSpaces) const = 0; 133 TextRange fClusterTextRange; 158 FontInfo(const SkFont font, const TextRange textRange) in FontInfo() 163 TextRange fTextRange; 167 FontInfo(const RSFont font, const TextRange textRange) in FontInfo() 172 TextRange fTextRange;
|
D | TextStyle.h | 400 typedef SkRange<size_t> TextRange; typedef 406 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block() 408 void add(TextRange tail) { in add() 410 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add() 413 TextRange fRange = EMPTY_RANGE; 426 BlockRange blocksBefore, TextRange textBefore) in Placeholder() 433 TextRange fRange = EMPTY_RANGE; 437 TextRange fTextBefore;
|
/third_party/typescript/src/compiler/transformers/ |
D | destructuring.ts | 10 …(target: BindingOrAssignmentElementTarget, value: Expression, location: TextRange, original: Node … 39 …createAssignmentCallback?: (name: Identifier, value: Expression, location?: TextRange) => Expressi… 40 let location: TextRange = node; 114 …(target: BindingOrAssignmentElementTarget, value: Expression, location: TextRange, original: Node)… 181 …ssions?: Expression[], name: BindingName, value: Expression, location?: TextRange, original?: Node… 243 …(target: BindingOrAssignmentElementTarget, value: Expression, location: TextRange | undefined, ori… 267 location: TextRange, 310 …gnmentElement, pattern: ObjectBindingOrAssignmentPattern, value: Expression, location: TextRange) { 368 …ignmentElement, pattern: ArrayBindingOrAssignmentPattern, value: Expression, location: TextRange) { 461 …xt: FlattenContext, value: Expression, defaultValue: Expression, location: TextRange): Expression { [all …]
|
D | generators.ts | 278 …let operationLocations: (TextRange | undefined)[] | undefined; // The source map location for the … 975 …lements: NodeArray<Expression>, leadingElement?: Expression, location?: TextRange, multiLine?: boo… 2462 function createInlineBreak(label: Label, location?: TextRange): ReturnStatement { 2481 … function createInlineReturn(expression?: Expression, location?: TextRange): ReturnStatement { 2496 function createGeneratorResume(location?: TextRange): LeftHandSideExpression { 2535 function emitAssignment(left: Expression, right: Expression, location?: TextRange): void { 2545 function emitBreak(label: Label, location?: TextRange): void { 2557 … function emitBreakWhenTrue(label: Label, condition: Expression, location?: TextRange): void { 2569 … function emitBreakWhenFalse(label: Label, condition: Expression, location?: TextRange): void { 2579 function emitYieldStar(expression?: Expression, location?: TextRange): void { [all …]
|
/third_party/skia/experimental/sktext/tests/ |
D | WrappedText.cpp | 43 TextRange lineText; 62 void onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) override { in onBeginLine() 66 …void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) ove… in onEndLine() 86 void onPlaceholder(TextRange, const SkRect& bounds) override { } in onPlaceholder() argument
|
D | SelectableText.cpp | 43 TextRange lineText; 63 void onBeginLine(size_t index, TextRange lineText, bool hardBreak, SkRect bounds) override { in onBeginLine() 67 …void onEndLine(size_t index, TextRange lineText, GlyphRange trailingSpaces, size_t glyphCount) ove… in onEndLine() 88 void onPlaceholder(TextRange, const SkRect& bounds) override { } in onPlaceholder() argument 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()
|
D | ShapedText.cpp | 57 REPORTER_ASSERT(reporter, logicalRuns[1].getTextRange() == TextRange(newLine, newLine + 1)); in UNIX_ONLY_TEST() 76 REPORTER_ASSERT(reporter, logicalRuns[1].getTextRange() == TextRange(newLine, newLine + 1)); in UNIX_ONLY_TEST()
|
/third_party/skia/experimental/sktext/editor/ |
D | Selection.h | 28 void select(TextRange range, SkRect rect); 45 std::vector<TextRange> fTextRanges;
|
/third_party/typescript/src/services/formatting/ |
D | formatting.ts | 9 export interface TextRangeWithKind<T extends SyntaxKind = SyntaxKind> extends TextRange { 131 const textRange: TextRange = { 221 function findEnclosingNode(range: TextRange, sourceFile: SourceFile): Node { 241 …ainsErrorFunction(errors: readonly Diagnostic[], originalRange: TextRange): (r: TextRange) => bool… 291 …function getScanStartPosition(enclosingNode: Node, originalRange: TextRange, sourceFile: SourceFil… 374 …function formatSpan(originalRange: TextRange, sourceFile: SourceFile, formatContext: FormatContext… 395 originalRange: TextRange, 402 rangeContainsError: (r: TextRange) => boolean, 497 range: TextRange, 1101 …function indentMultilineComment(commentRange: TextRange, indentation: number, firstLineIsIndented:… [all …]
|
/third_party/typescript/src/compiler/factory/ |
D | utilitiesPublic.ts | 2 … export function setTextRange<T extends TextRange>(range: T, location: TextRange | undefined): T {
|