Home
last modified time | relevance | path

Searched refs:TextRange (Results 1 – 25 of 32) sorted by relevance

12

/external/skia/modules/skparagraph/src/
DTextLine.h50 TextRange text,
51 TextRange textWithSpaces,
57 TextRange trimmedText() const { return fTextRange; } in trimmedText()
58 TextRange textWithSpaces() const { return fTextWithWhitespacesRange; } in textWithSpaces()
77 …using RunVisitor = std::function<bool(const Run* run, SkScalar runOffset, TextRange textRange, SkS…
79 …using RunStyleVisitor = std::function<void(TextRange textRange, const TextStyle& style, const Clip…
80 … SkScalar iterateThroughSingleRunByStyles(const Run* run, SkScalar runOffset, TextRange textRange,
101 …void getRectsForRange(TextRange textRange, RectHeightStyle rectHeightStyle, RectWidthStyle rectWid…
105 ClipContext measureTextInsideOneRun(TextRange textRange,
126 void buildTextBlob(TextRange textRange, const TextStyle& style, const ClipContext& context);
[all …]
DTextLine.cpp39 TextRange intersected(const TextRange& a, const TextRange& b) { in intersected()
43 return end >= begin ? TextRange(begin, end) : EMPTY_TEXT; in intersected()
51 TextRange operator*(const TextRange& a, const TextRange& b) { in operator *()
55 return end > begin ? TextRange(begin, end) : EMPTY_TEXT; in operator *()
85 TextRange text, in TextLine()
86 TextRange textWithSpaces, in TextLine()
172 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint()
175 …[textCanvas, x, y, this](TextRange textRange, const TextStyle& style, const ClipContext& context) { in paint()
185 … (const Run* run, SkScalar runOffsetInLine, TextRange textRange, SkScalar* runWidthInLine) { in paint()
188 …[textCanvas, x, y, &bounds, this](TextRange textRange, const TextStyle& style, const ClipContext& … in paint()
[all …]
DOneLineShaper.h36 explicit RunBlock(TextRange text) : fRun(nullptr), fText(text) { } in RunBlock()
38 RunBlock(std::shared_ptr<Run> run, TextRange text, GlyphRange glyphs, size_t score) in RunBlock()
50 TextRange fText;
56 … std::function<SkScalar(TextRange textRange, SkSpan<Block>, SkScalar&, TextIndex, uint8_t)>;
60 …void iterateThroughFontStyles(TextRange textRange, SkSpan<Block> styleSpan, const ShapeSingleFontV…
93 TextRange clusteredText(GlyphRange& glyphs);
104 TextRange fCurrentText;
DParagraphImpl.h72 StyleBlock(TextRange textRange, const TStyle& style) : fRange(textRange), fStyle(style) {}
73 void add(TextRange tail) {
75 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width());
77 TextRange fRange;
128 TextLine& addLine(SkVector offset, SkVector advance, TextRange text, TextRange textWithSpaces,
164 SkSpan<const char> text(TextRange textRange);
214 BlockRange findAllBlocks(TextRange textRange);
DRun.h106 TextRange textRange() const { return fTextRange; } in textRange()
142 std::tuple<bool, ClusterIndex, ClusterIndex> findLimitingClusters(TextRange text) const;
143 std::tuple<bool, TextIndex, TextIndex> findLimitingGraphemes(TextRange text) const;
175 TextRange fTextRange;
280 Cluster(TextRange textRange) : fTextRange(textRange), fGraphemeRange(EMPTY_RANGE) { } in Cluster()
310 TextRange textRange() const { return fTextRange; } in textRange()
323 bool belongs(TextRange text) const { in belongs()
327 bool startsIn(TextRange text) const { in startsIn()
337 TextRange fTextRange;
DOneLineShaper.cpp86 TextRange resolvedTextLimits = fCurrentRun->fTextRange; in fillGaps()
96 TextRange prevText = EMPTY_TEXT; in fillGaps()
108TextRange resolvedText(resolvedTextStart, fCurrentRun->leftToRight() ? unresolved.fText.start : un… in fillGaps()
135 TextRange resolvedText(resolvedTextStart,resolvedTextLimits.end); in fillGaps()
244 TextRange OneLineShaper::normalizeTextRange(GlyphRange glyphRange) { in normalizeTextRange()
247 return TextRange(clusterIndex(glyphRange.start), clusterIndex(glyphRange.end)); in normalizeTextRange()
249 return TextRange(clusterIndex(glyphRange.end - 1), in normalizeTextRange()
425 void OneLineShaper::iterateThroughFontStyles(TextRange textRange, in iterateThroughFontStyles()
563 TextRange textRange(start, end); in iterateThroughShapingRegions()
623 …(TextRange textRange, SkSpan<Block> styleSpan, SkScalar& advanceX, TextIndex textStart, uint8_t de… in shape()
[all …]
DParagraphImpl.cpp44 TextRange operator*(const TextRange& a, const TextRange& b) { in operator *()
48 return end > begin ? TextRange(begin, end) : EMPTY_TEXT; in operator *()
518 [&](TextRange text, in breakShapedTextIntoLines()
519 TextRange textWithSpaces, in breakShapedTextIntoLines()
614 BlockRange ParagraphImpl::findAllBlocks(TextRange textRange) { in findAllBlocks()
642 TextRange text, in addLine()
643 TextRange textWithSpaces, in addLine()
683 TextRange text(fText.size(), fText.size()); in getRectsForRange()
812 SkSpan<const char> ParagraphImpl::text(TextRange textRange) { in text()
DTextWrapper.h166 using AddLineToParagraph = std::function<void(TextRange text,
167 TextRange textWithSpaces,
DRun.cpp106 std::tuple<bool, ClusterIndex, ClusterIndex> Run::findLimitingClusters(TextRange text) const { in findLimitingClusters()
127 std::tuple<bool, TextIndex, TextIndex> Run::findLimitingGraphemes(TextRange text) const { in findLimitingGraphemes()
/external/google-java-format/idea_plugin/src/com/google/googlejavaformat/intellij/
DGoogleJavaFormatCodeStyleManager.java29 import com.intellij.openapi.util.TextRange;
56 formatInternal(file, ImmutableList.of(new TextRange(startOffset, endOffset))); in reformatText()
63 public void reformatText(PsiFile file, Collection<TextRange> ranges) in reformatText()
73 public void reformatTextWithContext(PsiFile file, Collection<TextRange> ranges) { in reformatTextWithContext()
89 formatInternal(file, ImmutableList.of(new TextRange(startOffset, endOffset))); in reformatRange()
102 private void formatInternal(PsiFile file, Collection<TextRange> ranges) { in formatInternal()
128 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()
DFormatterUtil.java26 import com.intellij.openapi.util.TextRange;
35 static Map<TextRange, String> getReplacements( in getReplacements()
36 Formatter formatter, String text, Collection<TextRange> ranges) { in getReplacements()
38 ImmutableMap.Builder<TextRange, String> replacements = ImmutableMap.builder(); in getReplacements()
52 private static Collection<Range<Integer>> toRanges(Collection<TextRange> textRanges) { in toRanges()
59 private static TextRange toTextRange(Range<Integer> range) { in toTextRange()
63 return new TextRange(range.lowerEndpoint(), range.upperEndpoint()); in toTextRange()
DCodeStyleManagerDecorator.java25 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/skia/modules/skparagraph/include/
DTextStyle.h292 typedef SkRange<size_t> TextRange; typedef
298 Block(TextRange textRange, const TextStyle& style) : fRange(textRange), fStyle(style) {} in Block()
300 void add(TextRange tail) { in add()
302 fRange = TextRange(fRange.start, fRange.start + fRange.width() + tail.width()); in add()
305 TextRange fRange = EMPTY_RANGE;
318 BlockRange blocksBefore, TextRange textBefore) in Placeholder()
325 TextRange fRange = EMPTY_RANGE;
329 TextRange fTextBefore;
/external/skia/experimental/sktext/include/
DProcessor.h28 Block(BlockType type, TextRange range) in Block()
32 TextRange fRange;
37 FontBlock(const SkString& family, SkScalar size, SkFontStyle style, TextRange range) in FontBlock()
51 DecorBlock(const SkPaint* foreground, const SkPaint* background, TextRange range) in DecorBlock()
56 DecorBlock(TextRange range) in DecorBlock()
125 bool isWhitespaces(TextRange range) { in isWhitespaces()
/external/skia/experimental/sktext/src/
DLine.h149 TextRange textRange() const { return fTextRange; } in textRange()
150 void setTextRange(TextRange range) { fTextRange = range; } in setTextRange()
162 TextRange fTextRange;
177 TextRange fText;
178 TextRange fWhitespaces;
DWrapper.h28 static GlyphRange glyphRange(const TextRun* run, const TextRange& textRange);
29 static TextRange textRange(const TextRun* run, const GlyphRange& glyphRange);
DWrapper.cpp14 GlyphRange Wrapper::glyphRange(const TextRun* run, const TextRange& textRange) { in glyphRange()
29 TextRange Wrapper::textRange(const TextRun* run, const GlyphRange& glyphRange) { in textRange()
DProcessor.cpp58 …[&](SkSize offset, SkScalar baseline, const TextRun* run, TextRange textRange, GlyphRange glyphRan… in decorate()
92 TextRange textRange(0, str.size()); in drawText()
132 defaultBlocks.emplace(foreground, nullptr, TextRange(0, fText.size())); in sortDecorBlocks()
263 TextRange textRange(run.fClusters[startGlyph], run.fClusters[endGlyph]); in iterateByVisualOrder()
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliLabelReference.java34 import com.intellij.openapi.util.TextRange;
67 @Override public TextRange getRangeInElement() { in getRangeInElement()
68 return new TextRange(0, getTextLength()); in getRangeInElement()
DSmaliAnnotationElementName.java34 import com.intellij.openapi.util.TextRange;
77 @Override public TextRange getRangeInElement() { in getRangeInElement()
78 return new TextRange(0, getTextLength()); in getRangeInElement()
DSmaliFieldReference.java34 import com.intellij.openapi.util.TextRange;
104 @Override public TextRange getRangeInElement() { in getRangeInElement()
105 return new TextRange(0, getTextLength()); in getRangeInElement()
DLightSmaliClassTypeElement.java34 import com.intellij.openapi.util.TextRange;
80 @Override public TextRange getRangeInElement() { in getRangeInElement()
81 return new TextRange(0, getTextLength()); in getRangeInElement()
DSmaliClassTypeElement.java34 import com.intellij.openapi.util.TextRange;
85 @Override public TextRange getRangeInElement() { in getRangeInElement()
86 return new TextRange(0, getTextLength()); in getRangeInElement()
DSmaliMethodReference.java35 import com.intellij.openapi.util.TextRange;
80 @Override public TextRange getRangeInElement() { in getRangeInElement()
81 return new TextRange(0, getTextLength()); in getRangeInElement()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DConcatNestedNamespacesCheck.cpp43 CharSourceRange TextRange = in alreadyConcatenated() local
46 Lexer::getSourceText(TextRange, Sources, LangOpts); in alreadyConcatenated()

12