Lines Matching refs:Text

42 static BreakableToken::Split getCommentSplit(StringRef Text,  in getCommentSplit()  argument
54 NumChars < MaxSplit && MaxSplitBytes < Text.size();) { in getCommentSplit()
56 encoding::getCodePointNumBytes(Text[MaxSplitBytes], Encoding); in getCommentSplit()
58 encoding::columnWidthWithTabs(Text.substr(MaxSplitBytes, BytesInChar), in getCommentSplit()
63 StringRef::size_type SpaceOffset = Text.find_last_of(Blanks, MaxSplitBytes); in getCommentSplit()
66 Text.find_last_not_of(Blanks, SpaceOffset) == StringRef::npos) { in getCommentSplit()
69 StringRef::size_type FirstNonWhitespace = Text.find_first_not_of(Blanks); in getCommentSplit()
73 SpaceOffset = Text.find_first_of( in getCommentSplit()
77 StringRef BeforeCut = Text.substr(0, SpaceOffset).rtrim(Blanks); in getCommentSplit()
78 StringRef AfterCut = Text.substr(SpaceOffset).ltrim(Blanks); in getCommentSplit()
86 getStringSplit(StringRef Text, unsigned UsedColumns, unsigned ColumnLimit, in getStringSplit() argument
89 if (Text.empty()) in getStringSplit()
100 if (Text[0] == '\\') { in getStringSplit()
101 Advance = encoding::getEscapeSequenceLength(Text); in getStringSplit()
104 Advance = encoding::getCodePointNumBytes(Text[0], Encoding); in getStringSplit()
106 Text.substr(0, Advance), UsedColumns + Chars, TabWidth, Encoding); in getStringSplit()
109 if (Chars > MaxSplit || Text.size() <= Advance) in getStringSplit()
112 if (IsBlank(Text[0])) in getStringSplit()
114 if (Text[0] == '/') in getStringSplit()
116 if (Advance == 1 && !isAlphanumeric(Text[0])) in getStringSplit()
120 Text = Text.substr(Advance); in getStringSplit()
388 StringRef Text = Lines[LineIndex].substr(TailOffset); in insertBreak() local
391 Text.size() == Split.first + Split.second) { in insertBreak()
397 Text.data() - Tok.TokenText.data() + Split.first; in insertBreak()
408 StringRef Text = Lines[LineIndex].substr(TailOffset); in replaceWhitespace() local
410 Text.data() - Tok.TokenText.data() + Split.first; in replaceWhitespace()