/external/skia/modules/skparagraph/src/ |
D | TextLine.h | 59 TextRange textExcludingSpaces, 60 TextRange text, 61 TextRange textIncludingNewlines, 67 TextRange trimmedText() const { return fTextExcludingSpaces; } in trimmedText() 68 TextRange textWithNewlines() const { return fTextIncludingNewlines; } in textWithNewlines() 69 TextRange text() const { return fText; } in text() 88 const Run* run, SkScalar runOffset, TextRange textRange, SkScalar* width)>; 91 TextRange textRange, const TextStyle& style, const ClipContext& context)>; 95 TextRange textRange, 119 …void getRectsForRange(TextRange textRange, RectHeightStyle rectHeightStyle, RectWidthStyle rectWid… [all …]
|
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 *() 89 TextRange textExcludingSpaces, in TextLine() 90 TextRange text, in TextLine() 91 TextRange textIncludingNewlines, in TextLine() 183 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() 186 … [painter, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint() 196 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint() [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)>; 61 …void iterateThroughFontStyles(TextRange textRange, SkSpan<Block> styleSpan, const ShapeSingleFontV… 95 TextRange clusteredText(GlyphRange& glyphs); 106 TextRange fCurrentText;
|
D | ParagraphImpl.h | 55 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {} in StyleBlock() 56 void add(TextRange tail) { in add() 58 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add() 60 TextRange fRange; 124 … TextRange textExcludingSpaces, TextRange text, TextRange textIncludingNewlines, 162 SkSpan<const char> text(TextRange textRange); 212 BlockRange findAllBlocks(TextRange textRange);
|
D | Run.h | 108 TextRange textRange() const { return fTextRange; } in textRange() 145 std::tuple<bool, ClusterIndex, ClusterIndex> findLimitingClusters(TextRange text) const; 146 std::tuple<bool, TextIndex, TextIndex> findLimitingGlyphClusters(TextRange text) const; 147 std::tuple<bool, TextIndex, TextIndex> findLimitingGraphemes(TextRange text) const; 176 TextRange fTextRange; 289 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster() 322 TextRange textRange() const { return fTextRange; } in textRange() 335 bool belongs(TextRange text) const { in belongs() 339 bool startsIn(TextRange text) const { in startsIn() 349 TextRange fTextRange;
|
D | ParagraphImpl.cpp | 46 TextRange operator*(const TextRange& a, const TextRange& b) { in operator *() 50 return end > begin ? TextRange(begin, end) : EMPTY_TEXT; in operator *() 551 auto textRange = TextRange(0, this->text().size()); in breakShapedTextIntoLines() 552 auto textExcludingSpaces = TextRange(0, fTrailingSpaces); in breakShapedTextIntoLines() 602 [&](TextRange textExcludingSpaces, in breakShapedTextIntoLines() 603 TextRange text, in breakShapedTextIntoLines() 604 TextRange textWithNewlines, in breakShapedTextIntoLines() 681 BlockRange ParagraphImpl::findAllBlocks(TextRange textRange) { in findAllBlocks() 709 TextRange textExcludingSpaces, in addLine() 710 TextRange text, in addLine() [all …]
|
D | OneLineShaper.cpp | 86 TextRange resolvedTextLimits = fCurrentRun->fTextRange; in fillGaps() 96 TextRange prevText = EMPTY_TEXT; in fillGaps() 108 …TextRange resolvedText(resolvedTextStart, fCurrentRun->leftToRight() ? unresolved.fText.start : un… in fillGaps() 135 TextRange resolvedText(resolvedTextStart,resolvedTextLimits.end); in fillGaps() 246 TextRange OneLineShaper::normalizeTextRange(GlyphRange glyphRange) { in normalizeTextRange() 249 return TextRange(clusterIndex(glyphRange.start), clusterIndex(glyphRange.end)); in normalizeTextRange() 251 return TextRange(clusterIndex(glyphRange.end - 1), in normalizeTextRange() 358 void OneLineShaper::iterateThroughFontStyles(TextRange textRange, in iterateThroughFontStyles() 526 TextRange textRange(start, end); in iterateThroughShapingRegions() 594 …(TextRange textRange, SkSpan<Block> styleSpan, SkScalar& advanceX, TextIndex textStart, uint8_t de… in shape() [all …]
|
/external/ktfmt/ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/ |
D | KtfmtCodeStyleManager.java | 25 import com.intellij.openapi.util.TextRange; 53 formatInternal(file, ImmutableList.of(new TextRange(startOffset, endOffset))); in reformatText() 60 public void reformatText(PsiFile file, Collection<TextRange> ranges) in reformatText() 70 public void reformatTextWithContext(PsiFile file, Collection<TextRange> ranges) { in reformatTextWithContext() 88 formatInternal(file, ImmutableList.of(new TextRange(startOffset, endOffset))); in reformatRange() 101 private void formatInternal(PsiFile file, Collection<TextRange> ranges) { in formatInternal() 127 private void format(Document document, Collection<TextRange> ranges) { in format() 136 final Document document, final Map<TextRange, String> replacements) { in performReplacements() argument 142 TreeMap<TextRange, String> sorted = new TreeMap<>(comparing(TextRange::getStartOffset)); in performReplacements() 147 for (Entry<TextRange, String> entry : sorted.descendingMap().entrySet()) { in performReplacements()
|
D | FormatterUtil.java | 25 import com.intellij.openapi.util.TextRange; 37 static Map<TextRange, String> getReplacements(UiFormatterStyle uiFormatterStyle, String code) { in getReplacements() 39 return ImmutableMap.of(TextRange.allOf(code), formatCode(uiFormatterStyle, code)); in getReplacements()
|
D | CodeStyleManagerDecorator.java | 25 import com.intellij.openapi.util.TextRange; 92 public void reformatText(PsiFile file, Collection<TextRange> ranges) in reformatText() 104 public void reformatTextWithContext(PsiFile file, Collection<TextRange> ranges) in reformatTextWithContext() 110 public void adjustLineIndent(PsiFile file, TextRange rangeToAdjust) in adjustLineIndent()
|
/external/google-java-format/idea_plugin/src/com/google/googlejavaformat/intellij/ |
D | GoogleJavaFormatCodeStyleManager.java | 29 import com.intellij.openapi.util.TextRange; 59 formatInternal(file, ImmutableList.of(new TextRange(startOffset, endOffset))); in reformatText() 66 public void reformatText(@NotNull PsiFile file, @NotNull Collection<? extends TextRange> ranges) in reformatText() 78 List<TextRange> ranges = new ArrayList<>(); in reformatTextWithContext() 88 @NotNull PsiFile file, @NotNull Collection<? extends TextRange> ranges) { in reformatTextWithContext() 107 formatInternal(file, ImmutableList.of(new TextRange(startOffset, endOffset))); in reformatRange() 120 private void formatInternal(PsiFile file, Collection<? extends TextRange> ranges) { in formatInternal() 146 private void format(Document document, Collection<? extends TextRange> ranges) { in format() 154 final Document document, final Map<TextRange, String> replacements) { in performReplacements() argument 160 TreeMap<TextRange, String> sorted = new TreeMap<>(comparing(TextRange::getStartOffset)); in performReplacements() [all …]
|
D | FormatterUtil.java | 26 import com.intellij.openapi.util.TextRange; 35 static Map<TextRange, String> getReplacements( in getReplacements() 36 Formatter formatter, String text, Collection<? extends TextRange> ranges) { in getReplacements() 38 ImmutableMap.Builder<TextRange, String> replacements = ImmutableMap.builder(); in getReplacements() 52 private static Collection<Range<Integer>> toRanges(Collection<? extends TextRange> textRanges) { in toRanges() 58 private static TextRange toTextRange(Range<Integer> range) { in toTextRange() 62 return new TextRange(range.lowerEndpoint(), range.upperEndpoint()); in toTextRange()
|
/external/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 | 129 typedef Range<TextIndex> TextRange; typedef 131 struct DirTextRange : public TextRange { 132 DirTextRange(TextRange textRange, bool leftToRight) in DirTextRange() 133 : TextRange(textRange) in DirTextRange() 136 : TextRange(start, end) in DirTextRange() 151 TextRange normalized() const { in normalized() 152 return fLeftToRight ? TextRange(fStart, fEnd) : TextRange(fEnd, fStart); in normalized() 201 …ResolvedFontBlock(TextRange textRange, sk_sp<SkTypeface> typeface, SkScalar size, SkFontStyle font… in ResolvedFontBlock() 207 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 …]
|
/external/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() 101 VisualLine(TextRange text, bool hardLineBreak, SkScalar verticalOffset, SkSpan<VisualRun> runs) in VisualLine() 125 TextRange text() const { return fText; } in text() 135 TextRange fText;
|
D | Text.cpp | 24 bool UnicodeText::isWhitespaces(TextRange range) const { in isWhitespaces() 49 TextRange adjustedBlock(0, 0); in resolveFonts() 83 bool FontResolvedText::resolveChain(UnicodeText* unicodeText, TextRange textRange, const FontChain&… in resolveChain() 85 std::deque<TextRange> unresolvedTexts; in resolveChain() 90 std::deque<TextRange> newUnresolvedTexts; in resolveChain() 99 unicodeText->forEachGrapheme(unresolvedText, [&](TextRange grapheme) { in resolveChain() 117 TextRange resolvedText(unresolvedText.fStart, unresolvedText.fStart); in resolveChain() 246 TextRange text8(UTF8FromUTF16[fb.textRange.fStart], UTF8FromUTF16[fb.textRange.fEnd]); in shape() 461 wrappedText->fVisualRuns.emplace_back(TextRange(textStart, textEnd), in addLine() 533 SkSpan<TextIndex> WrappedText::limitBlocks(TextRange textRange, SkSpan<TextIndex> blocks) { in limitBlocks() [all …]
|
/external/skia/modules/skparagraph/include/ |
D | TextStyle.h | 332 typedef SkRange<size_t> TextRange; typedef 338 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block() 340 void add(TextRange tail) { in add() 342 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add() 345 TextRange fRange = EMPTY_RANGE; 358 BlockRange blocksBefore, TextRange textBefore) in Placeholder() 365 TextRange fRange = EMPTY_RANGE; 369 TextRange fTextBefore;
|
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/ |
D | SmaliLabelReference.java | 34 import com.intellij.openapi.util.TextRange; 67 @Override public TextRange getRangeInElement() { in getRangeInElement() 68 return new TextRange(0, getTextLength()); in getRangeInElement()
|
D | SmaliAnnotationElementName.java | 34 import com.intellij.openapi.util.TextRange; 77 @Override public TextRange getRangeInElement() { in getRangeInElement() 78 return new TextRange(0, getTextLength()); in getRangeInElement()
|
D | SmaliFieldReference.java | 34 import com.intellij.openapi.util.TextRange; 104 @Override public TextRange getRangeInElement() { in getRangeInElement() 105 return new TextRange(0, getTextLength()); in getRangeInElement()
|
D | LightSmaliClassTypeElement.java | 34 import com.intellij.openapi.util.TextRange; 80 @Override public TextRange getRangeInElement() { in getRangeInElement() 81 return new TextRange(0, getTextLength()); in getRangeInElement()
|
/external/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
|
/external/skia/experimental/sktext/editor/ |
D | Selection.h | 28 void select(TextRange range, SkRect rect); 45 std::vector<TextRange> fTextRanges;
|