Lines Matching refs:substr

60         LongestPrefix = Comment.substr(0, PrefixLength);  in getLineCommentIndentPrefix()
86 encoding::columnWidthWithTabs(Text.substr(MaxSplitBytes, BytesInChar), in getCommentSplit()
97 if (kNumberedListRegexp->match(Text.substr(SpaceOffset).ltrim(Blanks))) in getCommentSplit()
128 StringRef BeforeCut = Text.substr(0, SpaceOffset).rtrim(Blanks); in getCommentSplit()
129 StringRef AfterCut = Text.substr(SpaceOffset).ltrim(Blanks); in getCommentSplit()
157 Text.substr(0, Advance), UsedColumns + Chars, TabWidth, Encoding); in getStringSplit()
171 Text = Text.substr(Advance); in getStringSplit()
188 StringRef Content = Token.TokenText.substr(2).ltrim(); in switchesFormatting()
224 encoding::columnWidthWithTabs(Line.substr(Offset, StringRef::npos), in getRemainingLength()
241 Line = Tok.TokenText.substr( in BreakableStringLiteral()
248 return getStringSplit(Line.substr(TailOffset), ContentStartColumn, in getSplit()
277 return getCommentSplit(Content[LineIndex].substr(TailOffset), in getSplit()
285 StringRef Text = Content[LineIndex].substr(TailOffset); in compressWhitespace()
344 TokenText.substr(2, TokenText.size() - 4).split(Lines, "\n"); in BreakableBlockComment()
386 Decoration = Decoration.substr(0, Decoration.size() - 1); in BreakableBlockComment()
420 Content[i] = Content[i].substr(DecorationSize); in BreakableBlockComment()
480 StringRef Whitespace = Lines[LineIndex].substr(0, StartOfLine); in adjustWhitespace()
484 Content[LineIndex - 1] = Lines[LineIndex - 1].substr( in adjustWhitespace()
486 Content[LineIndex] = Lines[LineIndex].substr(StartOfLine); in adjustWhitespace()
499 encoding::columnWidthWithTabs(Content[LineIndex].substr(Offset, Length), in getRangeLength()
509 if (Content[LineIndex].substr(Offset, StringRef::npos).empty()) { in getRangeLength()
545 ContentWithNoDecoration = ContentWithNoDecoration.substr(1).ltrim(Blanks); in getContentIndent()
547 StringRef FirstWord = ContentWithNoDecoration.substr( in getContentIndent()
558 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak()
609 Lines[0].substr(1).find_first_not_of(Blanks) != StringRef::npos; in introducesBreakBeforeToken()
641 size_t BreakLength = Lines[0].substr(1).find_first_not_of(Blanks); in adaptStartOfLine()
661 Prefix = Prefix.substr(0, 1); in adaptStartOfLine()
666 Prefix = Prefix.substr(0, 1); in adaptStartOfLine()
688 StringRef Line = Content.back().substr(TailOffset); in getSplitAfterLastLine()
702 IndentContent = Lines[LineIndex].ltrim(Blanks).substr(1); in mayReflow()
759 Content[i] = Lines[i].substr(IndentPrefix.size()); in BreakableLineCommentSection()
774 Content[i] = Content[i].substr(0, EndOfLine); in BreakableLineCommentSection()
802 Content[LineIndex].substr(Offset, Length), StartColumn, Style.TabWidth, in getRangeLength()
816 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak()
953 IndentContent = Lines[LineIndex].substr(2); in mayReflow()