/third_party/skia/experimental/sktext/include/ |
D | Types.h | 77 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 …]
|
/third_party/skia/modules/skparagraph/src/ |
D | TextWrapper.h | 37 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch() 39 … : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch() 54 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster() 58 inline size_t endPos() const { return fEnd.position(); } in endPos() 59 bool endOfCluster() { return fEnd.position() == fEnd.cluster()->endPos(); } in endOfCluster() 62 (fEnd.cluster()->isHardBreak() || fEnd.cluster()->isSoftBreak()); in endOfWord() 67 fEnd = stretch.fEnd; in extend() 72 bool empty() { return fStart.cluster() == fEnd.cluster() && in empty() 73 fStart.position() == fEnd.position(); } in empty() 81 fEnd = ClusterPos(cluster, cluster->endPos()); in extend() [all …]
|
/third_party/flutter/skia/modules/skparagraph/src/ |
D | TextWrapper.h | 37 TextStretch() : fStart(), fEnd(), fWidth(0), fWidthWithGhostSpaces(0) {} in TextStretch() 39 … : fStart(s, 0), fEnd(e, e->endPos()), fMetrics(forceStrut), fWidth(0), fWidthWithGhostSpaces(0) { in TextStretch() 50 inline Cluster* endCluster() const { return fEnd.cluster(); } in endCluster() 54 inline size_t endPos() const { return fEnd.position(); } in endPos() 56 bool endOfCluster() { return fEnd.position() == fEnd.cluster()->endPos(); } in endOfCluster() 59 (fEnd.cluster()->isHardBreak() || fEnd.cluster()->isSoftBreak()); in endOfWord() 64 fEnd = stretch.fEnd; in extend() 73 fEnd = ClusterPos(cluster, cluster->endPos()); in extend() 79 fEnd = ClusterPos(cluster, pos); in extend() 87 fEnd = ClusterPos(cluster, pos); in startFrom() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkDeque.cpp | 15 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 …]
|
D | SkArenaAlloc.cpp | 22 , fEnd {block + ToU32(size)} 28 fEnd = fCursor = fDtorCursor = nullptr; 136 fEnd = fCursor + allocationSize; in ensureSpace() 152 if ((ptrdiff_t)totalSize > fEnd - objStart) { in allocObjectWithFooter() 157 AssertRelease((ptrdiff_t)totalSize <= fEnd - objStart); in allocObjectWithFooter()
|
/third_party/skia/src/core/ |
D | SkDeque.cpp | 15 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 …]
|
D | SkEnumerate.h | 61 , 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;
|
D | SkArenaAlloc.cpp | 17 , 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()
|
/third_party/skia/experimental/sktext/src/ |
D | VisualRun.h | 44 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()
|
D | Text.cpp | 22 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 …]
|
/third_party/skia/tests/ |
D | SkBlockAllocatorTest.cpp | 113 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/ |
D | string_segment.cpp | 22 : 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/ |
D | string_segment.cpp | 22 : 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/ |
D | string_segment.cpp | 22 : 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/flutter/skia/third_party/externals/icu/source/i18n/ |
D | numparse_stringsegment.cpp | 24 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 44 fEnd = fStart + length; in setLength() 48 fEnd = fStr.length(); in resetLength() 52 return fEnd - fStart; in length() 64 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() 69 return UnicodeString(FALSE, fStr.getBuffer() + fStart, fEnd - fStart); in toTempUnicodeString() 74 if (U16_IS_LEAD(lead) && fStart + 1 < fEnd) { in getCodePoint()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | sfwdchit.cpp | 35 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/pathops/ |
D | SkOpAngle.cpp | 77 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/flutter/skia/src/pathops/ |
D | SkOpAngle.cpp | 77 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/flutter/skia/src/gpu/ |
D | GrResourceAllocator.h | 150 , fEnd(end) in Interval() 169 fEnd = end; in resetTo() 186 unsigned int end() const { return fEnd; } in end() 199 if (newEnd > fEnd) { in extendEnd() 200 fEnd = newEnd; in extendEnd() 202 SkDebugf("intvl %d: extending from %d to %d\n", fUniqueID, fEnd, newEnd); in extendEnd() 222 unsigned int fEnd; variable
|
/third_party/flutter/skia/modules/skshaper/src/ |
D | SkShaper.cpp | 48 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in FontMgrRunIterator() 58 SkASSERT(fCurrent < fEnd); in consume() 59 SkUnichar u = utf8_next(&fCurrent, fEnd); in consume() 78 while (fCurrent < fEnd) { in consume() 80 u = utf8_next(&fCurrent, fEnd); in consume() 103 return fCurrent == fEnd; in atEnd() 113 char const * const fEnd; member in FontMgrRunIterator
|
/third_party/skia/src/gpu/ |
D | GrResourceAllocator.h | 198 , 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
|
/third_party/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 69 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/flutter/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 69 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/modules/skshaper/src/ |
D | SkShaper.cpp | 95 : fCurrent(utf8), fBegin(utf8), fEnd(fCurrent + utf8Bytes) in FontMgrRunIterator() 114 SkASSERT(fCurrent < fEnd); in consume() 116 SkUnichar u = utf8_next(&fCurrent, fEnd); in consume() 137 while (fCurrent < fEnd) { in consume() 139 u = utf8_next(&fCurrent, fEnd); in consume() 164 return fCurrent == fEnd; in atEnd() 174 char const * const fEnd; member in FontMgrRunIterator
|
/third_party/skia/experimental/sktext/editor/ |
D | Texts.cpp | 82 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()
|