Lines Matching refs:start

299     const uint32_t start = range.getStart();
305 start == bufSize ? start : getPrevWordBreakForCache(buf, start + 1, bufSize);
307 for (size_t iter = start; iter < end; iter = wordend) {
310 const uint32_t offset = iter - start;
314 iter == start ? startHyphen : StartHyphenEdit::NO_EDIT,
324 for (size_t iter = end; iter > start; iter = wordstart) {
326 uint32_t bufStart = std::max(start, wordstart);
327 const uint32_t offset = bufStart - start;
332 wordstart <= start ? startHyphen : StartHyphenEdit::NO_EDIT,
402 float Layout::doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
407 float wordSpacing = count == 1 && isWordSpace(buf[start]) ? paint.wordSpacing : 0;
411 const Range range(start, start + count);
438 feature.start == 0 && feature.end == (unsigned int)-1) {
482 size_t start, size_t count, size_t bufSize,
502 // 2. Special features like start-of-word font features (not implemented in HarfBuzz
505 // We don't have any start-of-line replacement edit yet, so we don't need to check for
530 hbItemOffset = start + scriptRunStart;
532 // There's an edit at the beginning. Drop the pre-context and start the buffer at where we
533 // want to start shaping.
534 hbText = buf + start + scriptRunStart;
578 void Layout::doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,
584 paint.font->itemize(buf + start, count, paint, &items);
625 std::fill(&mExtents[run.start], &mExtents[run.end], verticalExtent);
636 // Note: scriptRunStart and scriptRunEnd, as well as run.start and run.end, run between 0
639 for (ssize_t scriptRunStart = run.start; scriptRunStart < run.end;
642 hb_script_t script = getScriptRun(buf + start, run.end, &scriptRunEnd /* iterator */);
681 addToHbBuffer(buffer, buf, start, count, bufSize, scriptRunStart, scriptRunEnd,
692 // first character passed to HarfBuzz, which is at buf[start + scriptRunStart] whose
741 ALOGE("cluster %zu (start %zu) out of bounds of count %zu", clusterBaseIndex,
742 start, count);
757 void Layout::appendLayout(const Layout& src, size_t start, float extraAdvance) {
780 mAdvances[i + start] = src.mAdvances[i];
782 mAdvances[start] += extraAdvance;
784 mExtents[i + start] = src.mExtents[i];