Lines Matching refs:fEnd
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()
92 fEnd = ClusterPos(cluster, pos); in extend()
100 fEnd = ClusterPos(cluster, pos); in startFrom()
113 fBreak = fEnd; in saveBreak()
118 fEnd = fBreak; in restoreBreak()
127 if (fEnd.cluster() != nullptr && in trim()
128 fEnd.cluster()->owner() != nullptr && in trim()
129 fEnd.cluster()->runOrNull() != nullptr && in trim()
130 fEnd.cluster()->run().placeholderStyle() == nullptr && in trim()
132 fWidth -= (fEnd.cluster()->width() - fEnd.cluster()->trimmedWidth(fEnd.position())); in trim()
137 SkASSERT(fEnd.cluster() == cluster); in trim()
138 if (fEnd.cluster() > fStart.cluster()) { in trim()
139 fEnd.move(false); in trim()
142 fEnd.setPosition(fStart.position()); in trim()
149 fEnd.clean(); in clean()
156 ClusterPos fEnd; variable