Lines Matching refs:fTextByteIndex
130 if (cursor.fTextByteIndex < cLine.fCursorPos.size()) { in getLocation()
131 pos = cLine.fCursorPos[cursor.fTextByteIndex]; in getLocation()
153 fLines[pos.fParagraphIndex].fText.insert(pos.fTextByteIndex, utf8Text, byteLen); in insert()
157 SkASSERT(pos.fTextByteIndex == 0); in insert()
160 pos = Editor::TextPosition{pos.fTextByteIndex + byteLen, pos.fParagraphIndex}; in insert()
185 SkASSERT(end.fTextByteIndex > start.fTextByteIndex); in remove()
187 start.fTextByteIndex, end.fTextByteIndex - start.fTextByteIndex); in remove()
192 line.fText.remove(start.fTextByteIndex, in remove()
193 line.fText.size() - start.fTextByteIndex); in remove()
194 line.fText.insert(start.fTextByteIndex, in remove()
195 fLines[end.fParagraphIndex].fText.begin() + end.fTextByteIndex, in remove()
196 fLines[end.fParagraphIndex].fText.size() - end.fTextByteIndex); in remove()
223 SkASSERT(end.fTextByteIndex > start.fTextByteIndex); in copy()
225 append(&dst, &size, str.begin() + start.fTextByteIndex, in copy()
226 end.fTextByteIndex - start.fTextByteIndex); in copy()
235 append(&dst, &size, first.begin() + start.fTextByteIndex, first.size() - start.fTextByteIndex); in copy()
241 append(&dst, &size, last.begin(), end.fTextByteIndex); in copy()
287 pos.fTextByteIndex = fLines[pos.fParagraphIndex].fText.size(); in move()
289 pos.fTextByteIndex = align_column(fLines[pos.fParagraphIndex].fText, pos.fTextByteIndex); in move()
293 SkASSERT(pos.fTextByteIndex <= fLines[pos.fParagraphIndex].fText.size()); in move()
295 SkASSERT(pos.fTextByteIndex == fLines[pos.fParagraphIndex].fText.size() || in move()
296 !is_utf8_continuation(fLines[pos.fParagraphIndex].fText.begin()[pos.fTextByteIndex])); in move()
302 if (0 == pos.fTextByteIndex) { in move()
305 pos.fTextByteIndex = fLines[pos.fParagraphIndex].fText.size(); in move()
309 pos.fTextByteIndex = in move()
310 prev_utf8(begin(str) + pos.fTextByteIndex, begin(str)) - begin(str); in move()
314 if (fLines[pos.fParagraphIndex].fText.size() == pos.fTextByteIndex) { in move()
317 pos.fTextByteIndex = 0; in move()
321 pos.fTextByteIndex = in move()
322 next_utf8(begin(str) + pos.fTextByteIndex, end(str)) - begin(str); in move()
328 size_t f = find_first_larger(list, pos.fTextByteIndex); in move()
329 pos.fTextByteIndex = f > 0 ? list[f - 1] : 0; in move()
335 size_t f = find_first_larger(list, pos.fTextByteIndex); in move()
337 pos.fTextByteIndex = list[f] > 0 ? list[f] - 1 : 0; in move()
339 pos.fTextByteIndex = fLines[pos.fParagraphIndex].fText.size(); in move()
345 SkASSERT(pos.fTextByteIndex < fLines[pos.fParagraphIndex].fCursorPos.size()); in move()
346 float x = fLines[pos.fParagraphIndex].fCursorPos[pos.fTextByteIndex].left(); in move()
348 size_t f = find_first_larger(list, pos.fTextByteIndex); in move()
352 pos.fTextByteIndex = find_closest_x(fLines[pos.fParagraphIndex].fCursorPos, x, in move()
360 pos.fTextByteIndex = find_closest_x(newLine.fCursorPos, x, in move()
364 pos.fTextByteIndex = find_closest_x(newLine.fCursorPos, x, 0, in move()
368 pos.fTextByteIndex = in move()
369 align_column(fLines[pos.fParagraphIndex].fText, pos.fTextByteIndex); in move()
375 float x = fLines[pos.fParagraphIndex].fCursorPos[pos.fTextByteIndex].left(); in move()
377 size_t f = find_first_larger(list, pos.fTextByteIndex); in move()
380 pos.fTextByteIndex = find_closest_x(bounds, x, list[f], in move()
387 pos.fTextByteIndex = find_closest_x(bounds, x, 0, in move()
390 pos.fTextByteIndex = fLines[pos.fParagraphIndex].fText.size(); in move()
392 pos.fTextByteIndex = in move()
393 align_column(fLines[pos.fParagraphIndex].fText, pos.fTextByteIndex); in move()
398 if (pos.fTextByteIndex == 0) { in move()
405 --pos.fTextByteIndex; in move()
406 } while (pos.fTextByteIndex > 0 && !words[pos.fTextByteIndex]); in move()
412 if (pos.fTextByteIndex == text.size()) { in move()
419 ++pos.fTextByteIndex; in move()
420 } while (pos.fTextByteIndex < text.size() && !words[pos.fTextByteIndex]); in move()
445 c->drawRect(offset(l.fCursorPos[pos.fTextByteIndex], l.fOrigin), selection); in paint()