• Home
  • Raw
  • Download

Lines Matching refs:range

35     void setNextRange(const Range& range, bool dir) {  in setNextRange()  argument
36 mRange = range; in setNextRange()
63 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getMetrics()
100 for (const auto [context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureText()
114 void setNextContext(const Range& range, HyphenEdit edit, bool dir) { in setNextContext() argument
115 mRange = range; in setNextContext()
137 float StyleRun::measureHyphenPiece(const U16StringPiece& textBuf, const Range& range, in measureHyphenPiece() argument
142 for (const BidiText::RunInfo info : BidiText(textBuf, range, bidiFlag)) { in measureHyphenPiece()
143 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in measureHyphenPiece()
145 piece.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in measureHyphenPiece()
147 piece.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in measureHyphenPiece()
167 const Range& range = run->getRange(); in measure() local
175 for (uint32_t i = range.getStart(); i < range.getEnd(); ++i) { in measure()
178 const bool canBreak = run->canBreak() || (i + 1) == range.getEnd(); in measure()
210 void StyleRun::appendLayout(const U16StringPiece& textBuf, const Range& range, in appendLayout() argument
215 float wordSpacing = range.getLength() == 1 && isWordSpace(textBuf[range.getStart()]) in appendLayout()
223 for (const BidiText::RunInfo info : BidiText(textBuf, range, bidiFlag)) { in appendLayout()
224 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in appendLayout()
227 range.getStart() == piece.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in appendLayout()
229 range.getEnd() == piece.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in appendLayout()
273 std::pair<float, MinikinRect> StyleRun::getBounds(const U16StringPiece& textBuf, const Range& range, in getBounds() argument
278 for (const BidiText::RunInfo info : BidiText(textBuf, range, bidiFlag)) { in getBounds()
279 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getBounds()
303 MinikinExtent StyleRun::getExtent(const U16StringPiece& textBuf, const Range& range, in getExtent() argument
308 for (const BidiText::RunInfo info : BidiText(textBuf, range, bidiFlag)) { in getExtent()
309 for (const auto[context, piece] : LayoutSplitter(textBuf, info.range, info.isRtl)) { in getExtent()
318 Layout MeasuredText::buildLayout(const U16StringPiece& textBuf, const Range& range, in buildLayout() argument
321 Layout outLayout(range.getLength()); in buildLayout()
324 if (!Range::intersects(range, runRange)) { in buildLayout()
327 const Range targetRange = Range::intersection(runRange, range); in buildLayout()
329 targetRange.getStart() == range.getStart() ? startHyphen : StartHyphenEdit::NO_EDIT; in buildLayout()
331 targetRange.getEnd() == range.getEnd() ? endHyphen : EndHyphenEdit::NO_EDIT; in buildLayout()
332 run->appendLayout(textBuf, targetRange, contextRange, layoutPieces, paint, range.getStart(), in buildLayout()
338 MinikinRect MeasuredText::getBounds(const U16StringPiece& textBuf, const Range& range) const { in getBounds()
344 if (!Range::intersects(range, runRange)) { in getBounds()
348 run->getBounds(textBuf, Range::intersection(runRange, range), layoutPieces); in getBounds()
356 MinikinExtent MeasuredText::getExtent(const U16StringPiece& textBuf, const Range& range) const { in getExtent()
360 if (!Range::intersects(range, runRange)) { in getExtent()
364 run->getExtent(textBuf, Range::intersection(runRange, range), layoutPieces); in getExtent()