Lines Matching refs:start
30 const char* start = (const char*)data;
31 const char* end = start + size;
32 const char* ptr = start;
35 size_t len = ptr - start;
37 f(start, len);
38 start = ptr;
178 Editor::TextPosition start = std::min(pos1, pos2, cmp);
180 if (start == end || start.fParagraphIndex == fLines.size()) {
181 return start;
184 if (start.fParagraphIndex == end.fParagraphIndex) {
185 SkASSERT(end.fTextByteIndex > start.fTextByteIndex);
186 fLines[start.fParagraphIndex].fText.remove(
187 start.fTextByteIndex, end.fTextByteIndex - start.fTextByteIndex);
188 this->markDirty(&fLines[start.fParagraphIndex]);
191 auto& line = fLines[start.fParagraphIndex];
192 line.fText.remove(start.fTextByteIndex,
193 line.fText.size() - start.fTextByteIndex);
194 line.fText.insert(start.fTextByteIndex,
198 fLines.erase(fLines.begin() + start.fParagraphIndex + 1,
201 return start;
217 Editor::TextPosition start = std::min(pos1, pos2, cmp);
219 if (start == end || start.fParagraphIndex == fLines.size()) {
222 if (start.fParagraphIndex == end.fParagraphIndex) {
223 SkASSERT(end.fTextByteIndex > start.fTextByteIndex);
224 auto& str = fLines[start.fParagraphIndex].fText;
225 append(&dst, &size, str.begin() + start.fTextByteIndex,
226 end.fTextByteIndex - start.fTextByteIndex);
230 const std::vector<TextLine>::const_iterator firstP = fLines.begin() + start.fParagraphIndex;
235 append(&dst, &size, first.begin() + start.fTextByteIndex, first.size() - start.fTextByteIndex);