Home
last modified time | relevance | path

Searched refs:fEnd (Results 1 – 25 of 58) sorted by relevance

123

/third_party/skia/experimental/sktext/include/
DTypes.h77 Range() : fStart(0), fEnd(0) { } in Range()
78 Range(T start, T end) : fStart(start) , fEnd(end) { } in Range()
81 return fStart == other.fStart && fEnd == other.fEnd;
86 fEnd = 0; in clean()
90 return fEnd == fStart; in isEmpty()
94 return index >= fStart && index < fEnd; in contains()
98 return range.fStart >= fStart && range.fEnd < fEnd; in contains()
103 return SkToInt(fEnd - fStart); in width()
107 SkASSERT(this->fEnd == tail.fStart || this->fStart == tail.fEnd); in merge()
109 this->fEnd = std::max(this->fEnd, tail.fEnd); in merge()
[all …]
DText.h60 for (size_t i = textRange.fStart; i < textRange.fEnd; ++i) { in forEachGrapheme()
62 grapheme.fEnd = i; in forEachGrapheme()
66 grapheme.fStart = grapheme.fEnd; in forEachGrapheme()
68 grapheme.fEnd = i; in forEachGrapheme()
72 grapheme.fStart = grapheme.fEnd + 1; in forEachGrapheme()
75 grapheme.fEnd = textRange.fEnd; in forEachGrapheme()
333 return (element.fGlyphRange.fEnd == fBoxLines.back().fBoxGlyphs.size()); in isLastOnTheLine()
/third_party/skia/modules/skparagraph/src/
DTextWrapper.h38 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch()
40 … : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch()
55 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster()
59 inline size_t endPos() const { return fEnd.position(); } in endPos()
60 bool endOfCluster() { return fEnd.position() == fEnd.cluster()->endPos(); } in endOfCluster()
63 (fEnd.cluster()->isHardBreak() || fEnd.cluster()->isSoftBreak()); in endOfWord()
68 fEnd = stretch.fEnd; in extend()
73 bool empty() { return fStart.cluster() == fEnd.cluster() && in empty()
74 fStart.position() == fEnd.position(); } in empty()
82 fEnd = ClusterPos(cluster, cluster->endPos()); in extend()
[all …]
/third_party/skia/src/core/
DSkDeque.cpp15 char* fEnd; // end of used section in this chunk member
23 fBegin = fEnd = nullptr; in init()
82 first->fEnd = first->fStop; in push_front()
125 end = last->fEnd + fElemSize; in push_back()
136 last->fEnd = end; in push_back()
167 SkASSERT(begin <= first->fEnd); in pop_front()
169 if (begin < fFrontBlock->fEnd) { in pop_front()
174 first->fBegin = first->fEnd = nullptr; // mark as empty in pop_front()
192 if (last->fEnd == nullptr) { // we were marked empty from before in pop_back()
200 char* end = last->fEnd - fElemSize; in pop_back()
[all …]
DSkEnumerate.h61 , fEnd{std::end(fCollection)} { }
65 fEnd = that.fEnd;
69 constexpr Iterator end() const { return Iterator{fBeginIndex + this->ssize(), fEnd}; }
70 constexpr bool empty() const { return fBegin == fEnd; }
71 constexpr size_t size() const { return std::distance(fBegin, fEnd); }
72 constexpr ptrdiff_t ssize() const { return std::distance(fBegin, fEnd); }
76 return SkEnumerate{fBeginIndex, fBegin, std::prev(fEnd, deltaEnd)};
81 return SkEnumerate{fBeginIndex + deltaBegin, std::next(fBegin, deltaBegin), fEnd};
94 , fEnd(end) {}
99 Iter fEnd;
DSkArenaAlloc.cpp17 , fEnd {block + SkToU32(size)}
21 fEnd = fCursor = fDtorCursor = nullptr;
96 fEnd = fCursor + allocationSize; in ensureSpace()
118 assert(fEnd); in allocObjectWithFooter()
121 if ((ptrdiff_t)totalSize > fEnd - objStart) { in allocObjectWithFooter()
126 AssertRelease((ptrdiff_t)totalSize <= fEnd - objStart); in allocObjectWithFooter()
DSkStream.cpp157 , fEnd(end) in SkFILEStream()
158 , fStart(std::min(start, fEnd)) in SkFILEStream()
159 , fCurrent(SkTPin(current, fStart, fEnd)) in SkFILEStream()
193 fEnd = 0; in close()
199 if (size > fEnd - fCurrent) { in read()
200 size = fEnd - fCurrent; in read()
214 if (fCurrent == fEnd) { in isAtEnd()
226 return new SkFILEStream(fFILE, fEnd, fStart, fStart); in onDuplicate()
235 fCurrent = std::min(SkSafeMath::Add(position, fStart), fEnd); in seek()
250 fCurrent = fEnd; in move()
[all …]
/third_party/skia/experimental/sktext/src/
DVisualRun.h44 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth()
45 return fPositions[glyphRange.fEnd].fX - fPositions[glyphRange.fStart].fX; in calculateWidth()
66 if (currentIndex >= fDirTextRange.fEnd) { in forEachTextBlockInGlyphRange()
72 dirTextRange.fStart = dirTextRange.fEnd; in forEachTextBlockInGlyphRange()
73 dirTextRange.fEnd = currentIndex; in forEachTextBlockInGlyphRange()
74 dirTextRange.fEnd = std::min(fDirTextRange.fEnd, dirTextRange.fEnd); in forEachTextBlockInGlyphRange()
117 fTrailingSpaces.fStart = fTrailingSpaces.fEnd + run.trailingSpacesStart(); in VisualLine()
119 fTrailingSpaces.fEnd += run.size(); in VisualLine()
DText.cpp22 for (auto i = range.fStart; i < range.fEnd; ++i) { in isWhitespaces()
72 adjustedBlock.fStart = adjustedBlock.fEnd; in resolveFonts()
73 adjustedBlock.fEnd = index; in resolveFonts()
74 if (adjustedBlock.fStart >= adjustedBlock.fEnd) { in resolveFonts()
80 …while (adjustedBlock.fEnd < this->fText16.size() && !this->hasProperty(adjustedBlock.fEnd, CodeUn… in resolveFonts()
81 ++adjustedBlock.fEnd; in resolveFonts()
122 … if (newUnresolvedTexts.empty() || newUnresolvedTexts.back().fEnd < grapheme.fStart) { in resolveChain()
127 newUnresolvedTexts.back().fEnd = grapheme.fEnd; in resolveChain()
140 resolvedText.fEnd = newUnresolvedText.fStart; in resolveChain()
145 resolvedText.fStart = newUnresolvedText.fEnd; in resolveChain()
[all …]
DLogicalRun.h27 SkASSERT(glyphRange.fStart <= glyphRange.fEnd && glyphRange.fEnd < fPositions.size()); in calculateWidth()
28 return fPositions[glyphRange.fEnd].fX - fPositions[glyphRange.fStart].fX; in calculateWidth()
54 this->fUtf16Range.fEnd = callback(this->fUtf8Range.end()); in convertUtf16Range()
/third_party/skia/tests/
DSkBlockAllocatorTest.cpp113 REPORTER_ASSERT(r, br.fEnd - br.fAlignedOffset >= size); in DEF_TEST()
123 reinterpret_cast<uintptr_t>(prevBR->fBlock->ptr(prevBR->fEnd - 1)); in DEF_TEST()
129 std::memset(br.fBlock->ptr(br.fAlignedOffset), 0xFF, br.fEnd - br.fAlignedOffset); in DEF_TEST()
189 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, 16)); in DEF_TEST()
190 p.fEnd += 16; in DEF_TEST()
192 std::memset(p.fBlock->ptr(p.fAlignedOffset), 0x11, p.fEnd - p.fAlignedOffset); in DEF_TEST()
199 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, 48)); in DEF_TEST()
202 REPORTER_ASSERT(r, p.fBlock->release(pNext.fStart, pNext.fEnd)); in DEF_TEST()
204 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST()
205 p.fEnd += fillBlock; in DEF_TEST()
[all …]
/third_party/icu/icu4c/source/i18n/
Dstring_segment.cpp22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment()
42 fEnd = fStart + length; in setLength()
46 fEnd = fStr.length(); in resetLength()
50 return fEnd - fStart; in length()
62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString()
67 return UnicodeString(false, fStr.getBuffer() + fStart, fEnd - fStart); in toTempUnicodeString()
72 if (U16_IS_LEAD(lead) && fStart + 1 < fEnd) { in getCodePoint()
/third_party/node/deps/icu-small/source/i18n/
Dstring_segment.cpp22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment()
42 fEnd = fStart + length; in setLength()
46 fEnd = fStr.length(); in resetLength()
50 return fEnd - fStart; in length()
62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString()
67 return UnicodeString(false, fStr.getBuffer() + fStart, fEnd - fStart); in toTempUnicodeString()
72 if (U16_IS_LEAD(lead) && fStart + 1 < fEnd) { in getCodePoint()
/third_party/skia/third_party/externals/icu/source/i18n/
Dstring_segment.cpp22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment()
42 fEnd = fStart + length; in setLength()
46 fEnd = fStr.length(); in resetLength()
50 return fEnd - fStart; in length()
62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString()
67 return UnicodeString(FALSE, fStr.getBuffer() + fStart, fEnd - fStart); in toTempUnicodeString()
72 if (U16_IS_LEAD(lead) && fStart + 1 < fEnd) { in getCodePoint()
/third_party/skia/src/pathops/
DSkOpAngle.cpp77 lh->fStart->t(), lh->fEnd->t(), in after()
78 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after()
80 rh->fStart->t(), rh->fEnd->t()); in after()
97 lh->fStart->t(), lh->fEnd->t(), in after()
98 segment()->debugID(), debugID(), fSectorStart, fSectorEnd, fStart->t(), fEnd->t(), in after()
100 rh->fStart->t(), rh->fEnd->t()); in after()
357 if (!fEnd->contains(rh->fEnd)) { in checkParallel()
391 bool stepUp = fStart->t() < fEnd->t(); in computeSector()
392 SkOpSpanBase* checkEnd = fEnd; in computeSector()
418 SkOpSpanBase* computedEnd = stepUp ? checkEnd ? checkEnd->prev() : fEnd->segment()->head() in computeSector()
[all …]
/third_party/skia/modules/skshaper/src/
DSkShaper.cpp116 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes)
135 SkASSERT(fCurrent < fEnd);
137 SkUnichar u = utf8_next(&fCurrent, fEnd);
158 while (fCurrent < fEnd) {
160 u = utf8_next(&fCurrent, fEnd);
185 return fCurrent == fEnd;
195 char const * const fEnd; member in FontMgrRunIterator
211 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes)
231 SkASSERT(fCurrent < fEnd);
233 SkUnichar u = utf8_next(&fCurrent, fEnd);
[all …]
/third_party/icu/icu4c/source/test/intltest/
Dsfwdchit.cpp35 fEnd = fStart+fLen;
56 fEnd = fStart+fLen; in SimpleFwdCharIterator()
62 fEnd = fStart + fLen; in SimpleFwdCharIterator()
109 if(fCurrent == fEnd) { in nextPostInc()
121 return fCurrent < fEnd; in hasNext()
/third_party/skia/src/gpu/
DGrResourceAllocator.h198 , fEnd(end) { in Interval()
211 unsigned int end() const { return fEnd; } in end()
224 if (newEnd > fEnd) { in extendEnd()
225 fEnd = newEnd; in extendEnd()
227 SkDebugf("intvl %d: extending from %d to %d\n", fUniqueID, fEnd, newEnd); in extendEnd()
237 unsigned int fEnd; variable
DGrMemoryPool.cpp70 header->fEnd = alloc.fEnd; in allocate()
119 memset(p, 0xDD, header->fEnd - alignedOffset); in release()
129 block->release(header->fStart, header->fEnd); in release()
/third_party/skia/src/pdf/
DSkPDFMakeToUnicodeCmap.cpp69 SkGlyphID fEnd; member
117 write_glyph(cmap, multiByte, bfrange[i + j].fEnd); in append_bfrange_section()
178 i == currentRangeEntry.fEnd + 1 && in SkPDFAppendCmapSections()
184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections()
193 currentRangeEntry.fEnd = i; in SkPDFAppendCmapSections()
/third_party/skia/experimental/sktext/editor/
DTexts.cpp82 SkASSERT(decorPos == selected.fEnd); in mergeSelectionIntoDecorations()
84 if (lastDecorPos + decor.charCount > selected.fEnd) { in mergeSelectionIntoDecorations()
86 …merged.emplace_back(lastDecorPos + decor.charCount - selected.fEnd, decor.foregroundPaint, decor.b… in mergeSelectionIntoDecorations()
87 decorPos += lastDecorPos + decor.charCount - selected.fEnd; in mergeSelectionIntoDecorations()
/third_party/skia/src/gpu/tessellate/
DMiddleOutPolygonTriangulator.h81 , fEnd(end) in PoppedTriangleStack()
108 Iter begin() const { return {fMiddleOut ? fMiddleOut->fTop : fEnd, fLastPoint}; } in begin()
109 Iter end() const { return {fEnd, fLastPoint}; } in end()
114 StackVertex* fEnd; variable
/third_party/skia/experimental/sktext/tests/
DSelectableText.cpp70 fTestLines.back().runRange.fEnd = fTestRuns.size(); in onEndLine()
123 …for (RunIndex runIndex = testLine.runRange.fEnd; runIndex > testLine.runRange.fStart; --runIndex) { in UNIX_ONLY_TEST()
133 REPORTER_ASSERT(reporter, boxLine.fTrailingSpacesEnd == testLine.trailingSpaces.fEnd); in UNIX_ONLY_TEST()
207 REPORTER_ASSERT(reporter, position.fTextRange.fEnd == next.fTextRange.fStart); in UNIX_ONLY_TEST()
216 REPORTER_ASSERT(reporter, position.fGlyphRange.fEnd == next.fGlyphRange.fStart); in UNIX_ONLY_TEST()
248 REPORTER_ASSERT(reporter, position.fTextRange.fEnd == prev.fTextRange.fStart); in UNIX_ONLY_TEST()
251 REPORTER_ASSERT(reporter, prev.fGlyphRange.fEnd == line.fBoxGlyphs.size()); in UNIX_ONLY_TEST()
257 REPORTER_ASSERT(reporter, position.fGlyphRange.fStart == prev.fGlyphRange.fEnd); in UNIX_ONLY_TEST()
/third_party/skia/modules/skottie/src/layers/shapelayer/
DTrimPaths.cpp30 this->bind(abuilder, jtrim["e"], &fEnd); in TrimEffectAdapter()
38 end = fEnd / 100, in onSync()
65 fEnd = 100, member in skottie::internal::__anon82847b600111::TrimEffectAdapter
/third_party/skia/src/shaders/gradients/
DSkLinearGradient.cpp32 , fEnd(pts[1]) { in SkLinearGradient()
51 buffer.writePoint(fEnd); in flatten()
88 info->fPoint[1] = fEnd; in asAGradient()

123