Home
last modified time | relevance | path

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

/external/skia/modules/skplaintexteditor/src/
Deditor.cpp128 const TextLine& cLine = fLines[cursor.fParagraphIndex]; in getLocation()
152 if (pos.fParagraphIndex < fLines.size()) { in insert()
153 fLines[pos.fParagraphIndex].fText.insert(pos.fTextByteIndex, utf8Text, byteLen); in insert()
154 this->markDirty(&fLines[pos.fParagraphIndex]); in insert()
156 SkASSERT(pos.fParagraphIndex == fLines.size()); in insert()
160 pos = Editor::TextPosition{pos.fTextByteIndex + byteLen, pos.fParagraphIndex}; in insert()
161 size_t newlinecount = count_char(fLines[pos.fParagraphIndex].fText, '\n'); in insert()
163 StringSlice src = std::move(fLines[pos.fParagraphIndex].fText); in insert()
164 std::vector<TextLine>::const_iterator next = fLines.begin() + pos.fParagraphIndex + 1; in insert()
166 TextLine* line = &fLines[pos.fParagraphIndex]; in insert()
[all …]
/external/skia/modules/skplaintexteditor/include/
Deditor.h60 size_t fParagraphIndex = SIZE_MAX; // logical line, based on hard newline characters. member
130 return u.fParagraphIndex == v.fParagraphIndex && u.fTextByteIndex == v.fTextByteIndex;
137 return u.fParagraphIndex < v.fParagraphIndex ||
138 (u.fParagraphIndex == v.fParagraphIndex && u.fTextByteIndex < v.fTextByteIndex);