Home
last modified time | relevance | path

Searched refs:fTextByteIndex (Results 1 – 2 of 2) sorted by relevance

/external/skia/modules/skplaintexteditor/src/
Deditor.cpp130 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()
[all …]
/external/skia/modules/skplaintexteditor/include/
Deditor.h59 size_t fTextByteIndex = SIZE_MAX; // index into UTF-8 representation of line. member
130 return u.fParagraphIndex == v.fParagraphIndex && u.fTextByteIndex == v.fTextByteIndex;
138 (u.fParagraphIndex == v.fParagraphIndex && u.fTextByteIndex < v.fTextByteIndex);