Lines Matching refs:Text
68 getCommentSplit(StringRef Text, unsigned ContentStartColumn, in getCommentSplit() argument
72 LLVM_DEBUG(llvm::dbgs() << "Comment split: \"" << Text in getCommentSplit()
82 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit()
84 encoding::getCodePointNumBytes(Text[MaxSplitBytes], Encoding); in getCommentSplit()
86 encoding::columnWidthWithTabs(Text.substr(MaxSplitBytes, BytesInChar), in getCommentSplit()
96 Text.find_first_of(Blanks, MaxSplitBytes); in getCommentSplit()
97 if (SpaceOffset != StringRef::npos && SpaceOffset + 1 < Text.size() && in getCommentSplit()
98 Text[SpaceOffset + 1] == '{') { in getCommentSplit()
103 StringRef::size_type SpaceOffset = Text.find_last_of(Blanks, MaxSplitBytes); in getCommentSplit()
115 Text.find_last_not_of(Blanks, SpaceOffset); in getCommentSplit()
116 if (LastNonBlank != StringRef::npos && Text[LastNonBlank] == '\\') { in getCommentSplit()
117 SpaceOffset = Text.find_last_of(Blanks, LastNonBlank); in getCommentSplit()
124 if (kNumberedListRegexp.match(Text.substr(SpaceOffset).ltrim(Blanks))) { in getCommentSplit()
125 SpaceOffset = Text.find_last_of(Blanks, SpaceOffset); in getCommentSplit()
130 if (Style.isJavaScript() && SpaceOffset + 1 < Text.size() && in getCommentSplit()
131 (Text[SpaceOffset + 1] == '{' || Text[SpaceOffset + 1] == '@')) { in getCommentSplit()
132 SpaceOffset = Text.find_last_of(Blanks, SpaceOffset); in getCommentSplit()
141 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) { in getCommentSplit()
144 StringRef::size_type FirstNonWhitespace = Text.find_first_not_of(Blanks); in getCommentSplit()
149 SpaceOffset = Text.find_first_of( in getCommentSplit()
157 if (SpaceOffset == 1 && Text[SpaceOffset - 1] == '*') in getCommentSplit()
159 StringRef BeforeCut = Text.substr(0, SpaceOffset).rtrim(Blanks); in getCommentSplit()
160 StringRef AfterCut = Text.substr(SpaceOffset); in getCommentSplit()
171 getStringSplit(StringRef Text, unsigned UsedColumns, unsigned ColumnLimit, in getStringSplit() argument
174 if (Text.empty()) in getStringSplit()
185 if (Text[0] == '\\') { in getStringSplit()
186 Advance = encoding::getEscapeSequenceLength(Text); in getStringSplit()
189 Advance = encoding::getCodePointNumBytes(Text[0], Encoding); in getStringSplit()
191 Text.substr(0, Advance), UsedColumns + Chars, TabWidth, Encoding); in getStringSplit()
194 if (Chars > MaxSplit || Text.size() <= Advance) in getStringSplit()
197 if (IsBlank(Text[0])) in getStringSplit()
199 if (Text[0] == '/') in getStringSplit()
201 if (Advance == 1 && !isAlphanumeric(Text[0])) in getStringSplit()
205 Text = Text.substr(Advance); in getStringSplit()
319 StringRef Text = Content[LineIndex].substr(TailOffset); in compressWhitespace() local
325 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in compressWhitespace()
415 const StringRef &Text = Content[i]; in BreakableBlockComment() local
418 if (Text.empty()) in BreakableBlockComment()
420 } else if (!Text.empty() && Decoration.startswith(Text)) { in BreakableBlockComment()
423 while (!Text.startswith(Decoration)) in BreakableBlockComment()
603 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak() local
610 Text.size() == Split.first + Split.second) { in insertBreak()
619 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in insertBreak()
917 StringRef Text = Content[LineIndex].substr(TailOffset); in insertBreak() local
921 Text.data() - tokenAt(LineIndex).TokenText.data() + Split.first; in insertBreak()