Searched refs:clusterIndex (Results 1 – 12 of 12) sorted by relevance
167 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);
249 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()
115 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()
104 size_t clusterIndex(size_t pos) const { return fClusterIndexes[pos]; } in clusterIndex() function214 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()
827 Cluster& ParagraphImpl::cluster(ClusterIndex clusterIndex) { in cluster() argument828 SkASSERT(clusterIndex < fClusters.size()); in cluster()829 return fClusters[clusterIndex]; in cluster()832 Run& ParagraphImpl::runByCluster(ClusterIndex clusterIndex) { in runByCluster() argument833 auto start = cluster(clusterIndex); in runByCluster()
96 ClusterIndex clusterIndex(GlyphIndex glyph) { in clusterIndex() function
39 auto checkCluster = [&](size_t clusterIndex) { in is_one_to_one() argument40 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()
119 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()
830 Cluster& ParagraphImpl::cluster(ClusterIndex clusterIndex) { in cluster() argument831 SkASSERT(clusterIndex < fClusters.size()); in cluster()832 return fClusters[clusterIndex]; in cluster()
132 Cluster& cluster(ClusterIndex clusterIndex);
102 size_t clusterIndex(size_t pos) const { return fClusterIndexes[pos]; } in clusterIndex() function