/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; 85 fStart = 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() 108 this->fStart = std::min(this->fStart, tail.fStart); in merge() [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | sfwdchit.cpp | 31 fStart = new UChar[fLen]; 32 if(fStart == NULL) { 35 fEnd = fStart+fLen; 36 fCurrent = fStart; 38 s.extract(0, fLen, fStart); 51 fStart = new UChar[fLen]; in SimpleFwdCharIterator() 52 if(fStart == NULL) { in SimpleFwdCharIterator() 55 uprv_memcpy(fStart, s, fLen); in SimpleFwdCharIterator() 56 fEnd = fStart+fLen; in SimpleFwdCharIterator() 57 fCurrent = fStart; in SimpleFwdCharIterator() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | string_segment.cpp | 22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 26 return fStart; in getOffset() 30 fStart = start; in setOffset() 34 fStart += delta; in adjustOffset() 38 fStart += U16_LENGTH(getCodePoint()); in adjustOffsetByCodePoint() 42 fEnd = fStart + length; in setLength() 50 return fEnd - fStart; in length() 54 return fStr.charAt(index + fStart); in charAt() 58 return fStr.char32At(index + fStart); in codePointAt() 62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() [all …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | string_segment.cpp | 22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 26 return fStart; in getOffset() 30 fStart = start; in setOffset() 34 fStart += delta; in adjustOffset() 38 fStart += U16_LENGTH(getCodePoint()); in adjustOffsetByCodePoint() 42 fEnd = fStart + length; in setLength() 50 return fEnd - fStart; in length() 54 return fStr.charAt(index + fStart); in charAt() 58 return fStr.char32At(index + fStart); in codePointAt() 62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() [all …]
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | string_segment.cpp | 22 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 26 return fStart; in getOffset() 30 fStart = start; in setOffset() 34 fStart += delta; in adjustOffset() 38 fStart += U16_LENGTH(getCodePoint()); in adjustOffsetByCodePoint() 42 fEnd = fStart + length; in setLength() 50 return fEnd - fStart; in length() 54 return fStr.charAt(index + fStart); in charAt() 58 return fStr.char32At(index + fStart); in codePointAt() 62 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | numparse_stringsegment.cpp | 24 : fStr(str), fStart(0), fEnd(str.length()), in StringSegment() 28 return fStart; in getOffset() 32 fStart = start; in setOffset() 36 fStart += delta; in adjustOffset() 40 fStart += U16_LENGTH(getCodePoint()); in adjustOffsetByCodePoint() 44 fEnd = fStart + length; in setLength() 52 return fEnd - fStart; in length() 56 return fStr.charAt(index + fStart); in charAt() 60 return fStr.char32At(index + fStart); in codePointAt() 64 return UnicodeString(fStr.getBuffer() + fStart, fEnd - fStart); in toUnicodeString() [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() 53 inline Cluster* startCluster() const { return fStart.cluster(); } in startCluster() 57 inline size_t startPos() const { return fStart.position(); } in startPos() 72 bool empty() { return fStart.cluster() == fEnd.cluster() && in empty() 73 fStart.position() == fEnd.position(); } in empty() 78 if (fStart.cluster() == nullptr) { in extend() 79 fStart = ClusterPos(cluster, cluster->startPos()); in extend() 99 fStart = ClusterPos(cluster, pos); in startFrom() 138 if (fEnd.cluster() > fStart.cluster()) { in trim() [all …]
|
/third_party/skia/experimental/sktext/src/ |
D | Text.cpp | 22 for (auto i = range.fStart; i < range.fEnd; ++i) { in isWhitespaces() 72 adjustedBlock.fStart = adjustedBlock.fEnd; in resolveFonts() 74 if (adjustedBlock.fStart >= adjustedBlock.fEnd) { in resolveFonts() 89 return a.textRange.fStart < b.textRange.fStart; in resolveFonts() 117 …ount = typeface->textToGlyphs(unicodeText->getText16().data() + grapheme.fStart, grapheme.width() … in resolveChain() 119 …typeface->textToGlyphs(unicodeText->getText16().data() + grapheme.fStart, grapheme.width() * 2, Sk… in resolveChain() 122 … if (newUnresolvedTexts.empty() || newUnresolvedTexts.back().fEnd < grapheme.fStart) { in resolveChain() 134 TextRange resolvedText(unresolvedText.fStart, unresolvedText.fStart); in resolveChain() 140 resolvedText.fEnd = newUnresolvedText.fStart; in resolveChain() 145 resolvedText.fStart = newUnresolvedText.fEnd; in resolveChain() [all …]
|
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() 64 … DirTextRange dirTextRange(fDirTextRange.fStart, fDirTextRange.fStart, fDirTextRange.fLeftToRight); in forEachTextBlockInGlyphRange() 69 if (currentIndex < fDirTextRange.fStart) { in forEachTextBlockInGlyphRange() 72 dirTextRange.fStart = dirTextRange.fEnd; in forEachTextBlockInGlyphRange() 117 fTrailingSpaces.fStart = fTrailingSpaces.fEnd + run.trailingSpacesStart(); in VisualLine()
|
/third_party/skia/tests/ |
D | SkBlockAllocatorTest.cpp | 115 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart >= 0); in DEF_TEST() 116 REPORTER_ASSERT(r, br.fAlignedOffset - br.fStart <= align - 1); in DEF_TEST() 189 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, 16)); 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() 211 REPORTER_ASSERT(r, !p.fBlock->resize(p.fStart, p.fEnd, fillBlock)); in DEF_TEST() 214 int shrinkTo32 = p.fStart - p.fEnd + 32; in DEF_TEST() 215 REPORTER_ASSERT(r, p.fBlock->resize(p.fStart, p.fEnd, shrinkTo32)); in DEF_TEST() 217 REPORTER_ASSERT(r, p.fEnd - p.fStart == 32); in DEF_TEST() [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() 49 inline Cluster* startCluster() const { return fStart.cluster(); } in startCluster() 53 inline size_t startPos() const { return fStart.position(); } in startPos() 70 if (fStart.cluster() == nullptr) { in extend() 71 fStart = ClusterPos(cluster, cluster->startPos()); in extend() 86 fStart = ClusterPos(cluster, pos); in startFrom() 119 if (fEnd.cluster() > fStart.cluster()) { in trim() 128 fStart.clean(); in clean() 135 ClusterPos fStart;
|
/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() 391 bool stepUp = fStart->t() < fEnd->t(); in computeSector() 420 if (checkEnd == fEnd || computedEnd == fEnd || computedEnd == fStart) { in computeSector() 424 if (stepUp != (fStart->t() < computedEnd->t())) { in computeSector() 524 double tStart = index ? rh->fStart->t() : this->fStart->t(); in endsIntersect() [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() 391 bool stepUp = fStart->t() < fEnd->t(); in computeSector() 420 if (checkEnd == fEnd || computedEnd == fEnd || computedEnd == fStart) { in computeSector() 424 if (stepUp != (fStart->t() < computedEnd->t())) { in computeSector() 524 double tStart = index ? rh->fStart->t() : this->fStart->t(); in endsIntersect() [all …]
|
/third_party/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 68 SkGlyphID fStart; member 115 write_glyph(cmap, multiByte, bfrange[i + j].fStart); in append_bfrange_section() 179 i >> 8 == currentRangeEntry.fStart >> 8 && in SkPDFAppendCmapSections() 182 currentRangeEntry.fUnicode + i - currentRangeEntry.fStart; in SkPDFAppendCmapSections() 184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections() 187 bfcharEntries.push_back({currentRangeEntry.fStart, currentRangeEntry.fUnicode}); in SkPDFAppendCmapSections() 195 currentRangeEntry.fStart = i; in SkPDFAppendCmapSections()
|
/third_party/flutter/skia/src/pdf/ |
D | SkPDFMakeToUnicodeCmap.cpp | 68 SkGlyphID fStart; member 115 write_glyph(cmap, multiByte, bfrange[i + j].fStart); in append_bfrange_section() 179 i >> 8 == currentRangeEntry.fStart >> 8 && in SkPDFAppendCmapSections() 182 currentRangeEntry.fUnicode + i - currentRangeEntry.fStart; in SkPDFAppendCmapSections() 184 if (currentRangeEntry.fEnd > currentRangeEntry.fStart) { in SkPDFAppendCmapSections() 187 bfcharEntries.push_back({currentRangeEntry.fStart, currentRangeEntry.fUnicode}); in SkPDFAppendCmapSections() 195 currentRangeEntry.fStart = i; in SkPDFAppendCmapSections()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | ConstrainedFieldPosition.java | 71 private int fStart; field in ConstrainedFieldPosition 95 fStart = 0; in reset() 216 return fStart; in getStart() 289 fStart = start; in setState() 329 sb.append(fStart); in toString()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | ConstrainedFieldPosition.java | 71 private int fStart; field in ConstrainedFieldPosition 99 fStart = 0; in reset() 224 return fStart; in getStart() 304 fStart = start; in setState() 346 sb.append(fStart); in toString()
|
/third_party/skia/src/sksl/analysis/ |
D | SkSLGetLoopUnrollInfo.cpp | 72 if (!ConstantFolder::GetConstantValue(*initDecl.value(), &loopInfo.fStart)) { in get_es2_loop_unroll_info() 182 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info() 187 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info() 192 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info() 197 loopInfo.fCount = calculate_count(loopInfo.fStart, loopEnd, loopInfo.fDelta, in get_es2_loop_unroll_info() 202 float iterations = sk_ieee_double_divide(loopEnd - loopInfo.fStart, loopInfo.fDelta); in get_es2_loop_unroll_info() 212 if (loopInfo.fStart == loopEnd) { in get_es2_loop_unroll_info()
|
/third_party/flutter/skia/src/gpu/geometry/ |
D | GrShape.h | 59 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, style.hasPathEffect(), in GrShape() 72 fRRectData.fStart = start; in GrShape() 74 fRRectData.fStart = (fRRectData.fStart + 1) & 0b110; in GrShape() 76 fRRectData.fStart &= 0b110; in GrShape() 79 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, false, &fRRectData.fDir); in GrShape() 88 fRRectData.fStart = DefaultRectDirAndStartIndex(rect, style.hasPathEffect(), in GrShape() 102 fRRectData.fStart = DefaultRRectDirAndStartIndex(rrect, fStyle.hasPathEffect(), in GrShape() 111 fRRectData.fStart = DefaultRectDirAndStartIndex(rect, fStyle.hasPathEffect(), in GrShape() 174 *start = fRRectData.fStart; in asRRect() 212 out->addRRect(fRRectData.fRRect, fRRectData.fDir, fRRectData.fStart); in asPath() [all …]
|
/third_party/skia/experimental/sktext/editor/ |
D | Texts.cpp | 63 if (decorPos + decor.charCount >= selected.fStart) { in mergeSelectionIntoDecorations() 72 if (selected.fStart > decorPos) { in mergeSelectionIntoDecorations() 74 … merged.emplace_back(selected.fStart - decorPos, decor.foregroundPaint, decor.backgroundPaint); in mergeSelectionIntoDecorations() 75 decorPos = selected.fStart; in mergeSelectionIntoDecorations() 77 SkASSERT(decorPos == selected.fStart); in mergeSelectionIntoDecorations()
|
/third_party/skia/src/gpu/ |
D | GrMemoryPool.cpp | 69 header->fStart = alloc.fStart; in allocate() 111 SkBlockAllocator::Block* block = fAllocator.owningBlock<kAlignment>(header, header->fStart); in release() 129 block->release(header->fStart, header->fEnd); in release()
|
/third_party/skia/src/core/ |
D | SkStream.cpp | 158 , fStart(std::min(start, fEnd)) in SkFILEStream() 159 , fCurrent(SkTPin(current, fStart, fEnd)) in SkFILEStream() 161 SkASSERT(fStart == start); in SkFILEStream() 194 fStart = 0; in close() 221 fCurrent = fStart; in rewind() 226 return new SkFILEStream(fFILE, fEnd, fStart, fStart); in onDuplicate() 230 SkASSERT(fCurrent >= fStart); in getPosition() 231 return fCurrent - fStart; in getPosition() 235 fCurrent = std::min(SkSafeMath::Add(position, fStart), fEnd); in seek() 245 fCurrent = fStart; in move() [all …]
|
/third_party/flutter/skia/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 31 , fStart(pts[0]) in SkLinearGradient() 50 buffer.writePoint(fStart); in flatten() 81 info->fPoint[0] = fStart; in asAGradient()
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
D | TrimPaths.cpp | 29 this->bind(abuilder, jtrim["s"], &fStart); in TrimEffectAdapter() 37 const auto start = fStart / 100, in onSync() 64 ScalarValue fStart = 0, member in skottie::internal::__anon4e7a3dd30111::TrimEffectAdapter
|
/third_party/skia/src/shaders/gradients/ |
D | SkLinearGradient.cpp | 31 , fStart(pts[0]) in SkLinearGradient() 50 buffer.writePoint(fStart); in flatten() 87 info->fPoint[0] = fStart; in asAGradient()
|