Lines Matching refs:Lines

258   TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n");  in BreakableBlockComment()
261 LeadingWhitespace.resize(Lines.size()); in BreakableBlockComment()
262 StartOfLineColumn.resize(Lines.size()); in BreakableBlockComment()
264 for (size_t i = 1; i < Lines.size(); ++i) in BreakableBlockComment()
268 if (Lines.size() == 1 && !FirstInLine) { in BreakableBlockComment()
276 for (size_t i = 1, e = Lines.size(); i < e && !Decoration.empty(); ++i) { in BreakableBlockComment()
278 if (i + 1 == e && Lines[i].empty()) in BreakableBlockComment()
280 while (!Lines[i].startswith(Decoration)) in BreakableBlockComment()
286 for (size_t i = 1; i < Lines.size(); ++i) { in BreakableBlockComment()
287 if (Lines[i].empty()) { in BreakableBlockComment()
288 if (i + 1 == Lines.size()) { in BreakableBlockComment()
304 Lines[i] = Lines[i].substr(Decoration.size()); in BreakableBlockComment()
312 for (size_t i = 0; i < Lines.size(); ++i) { in BreakableBlockComment()
313 llvm::dbgs() << i << " |" << Lines[i] << "| " << LeadingWhitespace[i] in BreakableBlockComment()
326 size_t EndOfPreviousLine = Lines[LineIndex - 1].size(); in adjustWhitespace()
327 if (InPPDirective && Lines[LineIndex - 1].endswith("\\")) in adjustWhitespace()
332 Lines[LineIndex - 1].find_last_not_of(Blanks, EndOfPreviousLine); in adjustWhitespace()
338 size_t StartOfLine = Lines[LineIndex].find_first_not_of(Blanks); in adjustWhitespace()
340 StartOfLine = Lines[LineIndex].size(); in adjustWhitespace()
342 StringRef Whitespace = Lines[LineIndex].substr(0, StartOfLine); in adjustWhitespace()
344 Lines[LineIndex - 1] = Lines[LineIndex - 1].substr(0, EndOfPreviousLine); in adjustWhitespace()
345 Lines[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
349 Lines[LineIndex].begin() - Lines[LineIndex - 1].end(); in adjustWhitespace()
357 unsigned BreakableBlockComment::getLineCount() const { return Lines.size(); } in getLineCount()
363 encoding::columnWidthWithTabs(Lines[LineIndex].substr(Offset, Length), in getLineLengthAfterSplit()
367 (LineIndex + 1 == Lines.size() ? 2 : 0); in getLineLengthAfterSplit()
373 return getCommentSplit(Lines[LineIndex].substr(TailOffset), in getSplit()
381 StringRef Text = Lines[LineIndex].substr(TailOffset); in insertBreak()
383 if (LineIndex + 1 == Lines.size() && in insertBreak()
401 StringRef Text = Lines[LineIndex].substr(TailOffset); in replaceWhitespace()
416 if (Lines[LineIndex].empty()) { in replaceWhitespaceBefore()
417 if (LineIndex + 1 == Lines.size()) { in replaceWhitespaceBefore()
435 unsigned WhitespaceOffsetInToken = Lines[LineIndex].data() - in replaceWhitespaceBefore()