Lines Matching refs:index

169 	int32 index;
172 for (index = 0; index < count; index++) {
173 const TextSpan& span = paragraph.TextSpanAtIndex(index);
190 int32 index;
193 for (index = 0; index < count; index++) {
194 const TextSpan& span = paragraph.TextSpanAtIndex(index);
211 int32 index;
214 for (index = 0; index < count; index++) {
215 const TextSpan& span = paragraph.TextSpanAtIndex(index);
244 TextDocument::ParagraphAtIndex(int32 index) const
246 return fParagraphs[index];
275 int32 index = ParagraphIndexFor(textOffset, paragraphOffset);
276 if (index >= 0)
277 return fParagraphs[index];
284 TextDocument::ParagraphAt(int32 index) const
286 if (index >= 0 && index < static_cast<int32>(fParagraphs.size()))
287 return fParagraphs[index];
523 int32& index, int32& paragraphCount)
526 index = ParagraphIndexFor(textOffset, paragraphOffset);
527 if (index < 0)
545 Paragraph paragraph1(ParagraphAt(index).Style());
549 const Paragraph& paragraphAtIndex = ParagraphAt(index);
574 fParagraphs.erase(fParagraphs.begin() + index);
591 fParagraphs.insert(fParagraphs.begin() + index, paragraph1);
602 index++;
604 fParagraphs.insert(fParagraphs.begin() + index, otherParagraph);
617 index++;
619 fParagraphs.insert(fParagraphs.begin() + index, otherParagraph);
647 index++;
649 fParagraphs.insert(fParagraphs.begin() + index, paragraph2);
657 Paragraph paragraph(ParagraphAt(index));
667 fParagraphs[index] = paragraph;
676 TextDocument::_Remove(int32 textOffset, int32 length, int32& index,
683 index = ParagraphIndexFor(textOffset, paragraphOffset);
684 if (index < 0)
695 Paragraph resultParagraph(ParagraphAt(index));
709 && index + 1 < static_cast<int32>(fParagraphs.size())) {
713 const Paragraph& paragraph = ParagraphAt(index + 1);
719 fParagraphs.erase(fParagraphs.begin() + (index + 1));
725 while (length > 0 && index + 1 < static_cast<int32>(fParagraphs.size())) {
727 const Paragraph& paragraph = ParagraphAt(index + 1);
734 fParagraphs.erase(fParagraphs.begin() + index);
739 fParagraphs.erase(fParagraphs.begin() + (index + 1));
755 fParagraphs[index] = resultParagraph;