Home
last modified time | relevance | path

Searched refs:clusterIndex (Results 1 – 12 of 12) sorted by relevance

/third_party/skia/modules/skparagraph/src/
DParagraphImpl.h167 Cluster& cluster(ClusterIndex clusterIndex);
168 ClusterIndex clusterIndex(TextIndex textIndex) {
169 auto clusterIndex = this->fClustersIndexFromCodeUnit[textIndex];
170 SkASSERT(clusterIndex != EMPTY_INDEX);
171 return clusterIndex;
178 Run& runByCluster(ClusterIndex clusterIndex);
DOneLineShaper.cpp249 return TextRange(clusterIndex(glyphRange.start), clusterIndex(glyphRange.end)); in normalizeTextRange()
251 return TextRange(clusterIndex(glyphRange.end - 1), in normalizeTextRange()
253 ? clusterIndex(glyphRange.start - 1) in normalizeTextRange()
314 ClusterIndex ci = clusterIndex(i); in sortOutGlyphs()
372 const char* cluster = text.begin() + clusterIndex(i); in sortOutGlyphs()
758 while (glyphs.start > 0 && clusterIndex(glyphs.start) > textRange.start) { in clusteredText()
761 while (glyphs.end < fCurrentRun->size() && clusterIndex(glyphs.end) < textRange.end) { in clusteredText()
765 while (glyphs.start > 0 && clusterIndex(glyphs.start - 1) < textRange.end) { in clusteredText()
768 while (glyphs.end < fCurrentRun->size() && clusterIndex(glyphs.end) > textRange.start) { in clusteredText()
DRun.cpp115 ClusterIndex index = fOwner->clusterIndex(text.end - 1); in findLimitingClusters()
122 ClusterIndex startIndex = fOwner->clusterIndex(text.start); in findLimitingClusters()
123 ClusterIndex endIndex = fOwner->clusterIndex(text.end - 1); in findLimitingClusters()
DRun.h104 size_t clusterIndex(size_t pos) const { return fClusterIndexes[pos]; } in clusterIndex() function
214 size_t cluster = this->clusterIndex(start); in iterateThroughClustersInTextOrder()
216 auto nextCluster = this->clusterIndex(glyph); in iterateThroughClustersInTextOrder()
236 start == 0 ? this->fUtf8Range.end() : this->clusterIndex(start - 1); in iterateThroughClustersInTextOrder()
DParagraphImpl.cpp827 Cluster& ParagraphImpl::cluster(ClusterIndex clusterIndex) { in cluster() argument
828 SkASSERT(clusterIndex < fClusters.size()); in cluster()
829 return fClusters[clusterIndex]; in cluster()
832 Run& ParagraphImpl::runByCluster(ClusterIndex clusterIndex) { in runByCluster() argument
833 auto start = cluster(clusterIndex); in runByCluster()
DOneLineShaper.h96 ClusterIndex clusterIndex(GlyphIndex glyph) { in clusterIndex() function
/third_party/flutter/skia/src/utils/
DSkShaperJSONWriter.cpp39 auto checkCluster = [&](size_t clusterIndex) { in is_one_to_one() argument
40 if (clusters[clusterIndex] >= lastUtf8Index) { in is_one_to_one()
43 size_t utf8ClusterSize = lastUtf8Index - clusters[clusterIndex]; in is_one_to_one()
44 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one()
47 lastUtf8Index = clusters[clusterIndex]; in is_one_to_one()
/third_party/skia/src/utils/
DSkShaperJSONWriter.cpp39 auto checkCluster = [&](size_t clusterIndex) { in is_one_to_one() argument
40 if (clusters[clusterIndex] >= lastUtf8Index) { in is_one_to_one()
43 size_t utf8ClusterSize = lastUtf8Index - clusters[clusterIndex]; in is_one_to_one()
44 if (SkUTF::CountUTF8(&utf8[clusters[clusterIndex]], utf8ClusterSize) != 1) { in is_one_to_one()
47 lastUtf8Index = clusters[clusterIndex]; in is_one_to_one()
/third_party/flutter/skia/modules/skparagraph/src/
DRun.cpp119 size_t cluster = this->clusterIndex(start); in iterateThroughClustersInTextOrder()
121 auto nextCluster = this->clusterIndex(glyph); in iterateThroughClustersInTextOrder()
141 start == 0 ? this->fUtf8Range.end() : this->clusterIndex(start - 1); in iterateThroughClustersInTextOrder()
DParagraphImpl.cpp830 Cluster& ParagraphImpl::cluster(ClusterIndex clusterIndex) { in cluster() argument
831 SkASSERT(clusterIndex < fClusters.size()); in cluster()
832 return fClusters[clusterIndex]; in cluster()
DParagraphImpl.h132 Cluster& cluster(ClusterIndex clusterIndex);
DRun.h102 size_t clusterIndex(size_t pos) const { return fClusterIndexes[pos]; } in clusterIndex() function