Home
last modified time | relevance | path

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

/third_party/skia/modules/skplaintexteditor/src/
H A 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...]
/third_party/skia/modules/skplaintexteditor/include/
H A 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; in operator ==()
137 return u.fParagraphIndex < v.fParagraphIndex || in operator <()
138 (u.fParagraphIndex == v.fParagraphIndex && u.fTextByteIndex < v.fTextByteIndex); in operator <()

Completed in 2 milliseconds