Lines Matching refs:cluster
25 for (auto cluster = fEndLine.endCluster(); cluster < endOfClusters; ++cluster) { in lookAhead() local
27 auto width = fWords.width() + fClusters.width() + cluster->width(); in lookAhead()
29 if (cluster->isHardBreak()) { in lookAhead()
31 if (cluster->isWhitespaces()) { in lookAhead()
33 fClusters.extend(cluster); in lookAhead()
41 for (auto further = cluster; further != endOfClusters; ++further) { in lookAhead()
59 if (cluster->width() > maxWidth) { in lookAhead()
60 fClusters.extend(cluster); in lookAhead()
67 fClusters.extend(cluster); in lookAhead()
75 if ((fHardLineBreak = cluster->isHardBreak())) { in lookAhead()
112 for (auto cluster = fEndLine.endCluster(); in trimEndSpaces() local
113 cluster >= fEndLine.startCluster() && cluster->isWhitespaces(); in trimEndSpaces()
114 --cluster) { in trimEndSpaces()
115 fEndLine.trim(cluster); in trimEndSpaces()
123 auto cluster = fClusters.endCluster(); in getClustersTrimmedWidth() local
124 for (; cluster > fClusters.startCluster() && cluster->isWhitespaces(); --cluster) { in getClustersTrimmedWidth()
125 width -= cluster->width(); in getClustersTrimmedWidth()
127 if (cluster >= fClusters.startCluster()) { in getClustersTrimmedWidth()
128 if (cluster->isWhitespaces()) { in getClustersTrimmedWidth()
129 width -= cluster->width(); in getClustersTrimmedWidth()
131 width -= (cluster->width() - cluster->trimmedWidth(cluster->endPos())); in getClustersTrimmedWidth()
143 auto cluster = fEndLine.endCluster() + 1; in trimStartSpaces() local
144 while (cluster < fEndLine.breakCluster() && cluster->isWhitespaces()) { in trimStartSpaces()
145 width += cluster->width(); in trimStartSpaces()
146 ++cluster; in trimStartSpaces()
152 auto cluster = fEndLine.breakCluster(); in trimStartSpaces() local
155 ++cluster; in trimStartSpaces()
156 while (cluster < endOfClusters && cluster->isWhitespaces()) { in trimStartSpaces()
157 width += cluster->width(); in trimStartSpaces()
158 ++cluster; in trimStartSpaces()
164 return std::make_tuple(cluster, 0, width); in trimStartSpaces()
224 for (auto cluster = fEndLine.startCluster(); cluster <= fEndLine.endCluster(); ++cluster) { in breakTextIntoLines() local
225 if (cluster->run() == lastRun) { in breakTextIntoLines()
228 lastRun = cluster->run(); in breakTextIntoLines()
296 auto cluster = fEndLine.endCluster(); in breakTextIntoLines() local
297 while (cluster != end || cluster->endPos() < end->endPos()) { in breakTextIntoLines()
299 if (cluster->isHardBreak()) { in breakTextIntoLines()
304 } else if (cluster->isWhitespaces()) { in breakTextIntoLines()
305 SkASSERT(cluster->isWhitespaces()); in breakTextIntoLines()
306 softLineMaxIntrinsicWidth += cluster->width(); in breakTextIntoLines()
310 softLineMaxIntrinsicWidth += cluster->width(); in breakTextIntoLines()
311 lastWordLength += cluster->width(); in breakTextIntoLines()
313 ++cluster; in breakTextIntoLines()