Lines Matching defs:Text

826   auto Text = Lex->getBuffer().substr(OpenOffset, CloseOffset - OpenOffset + 2);
827 MultiLineString->TokenText = Text;
829 Lex->getSourceLocation(Lex->getBufferLocation() - 2 + Text.size())));
830 auto FirstLineText = Text;
831 auto FirstBreak = Text.find('\n');
835 FirstLineText = Text.substr(0, FirstBreak + 1);
837 auto LastBreak = Text.rfind('\n');
839 Text.substr(LastBreak + 1), MultiLineString->OriginalColumn,
853 StringRef Text = Tok->TokenText;
862 if (Text.size() < 1 || Text[0] == '+' || Text[0] == '-')
864 const auto NonDigitPos = Text.find_if([](char C) { return !isdigit(C); });
868 char FirstNonDigit = Text[NonDigitPos];
869 if (NonDigitPos < Text.size() - 1) {
870 char TheNext = Text[NonDigitPos + 1];
1108 static size_t countLeadingWhitespace(StringRef Text) {
1114 const unsigned char *const Begin = Text.bytes_begin();
1115 const unsigned char *const End = Text.bytes_end();
1166 StringRef Text = FormatTok->TokenText;
1168 for (int i = 0, e = Text.size(); i != e; ++i) {
1169 switch (Text[i]) {
1174 if (i + 1 < e && Text[i + 1] == '\n')
1202 assert(Text.substr(i, 2) == "\\\r" || Text.substr(i, 2) == "\\\n" ||
1203 Text.substr(i, 4) == "\?\?/\r" ||
1204 Text.substr(i, 4) == "\?\?/\n" ||
1205 (i >= 1 && (Text.substr(i - 1, 4) == "\?\?/\r" ||
1206 Text.substr(i - 1, 4) == "\?\?/\n")) ||
1207 (i >= 2 && (Text.substr(i - 2, 4) == "\?\?/\r" ||
1208 Text.substr(i - 2, 4) == "\?\?/\n")));
1217 WhitespaceLength += Text.size();
1329 StringRef Text = FormatTok->TokenText;
1330 size_t FirstNewlinePos = Text.find('\n');
1335 encoding::columnWidthWithTabs(Text, Column, Style.TabWidth, Encoding);
1342 Text.substr(0, FirstNewlinePos), Column, Style.TabWidth, Encoding);
1347 Text.substr(Text.find_last_of('\n') + 1), 0, Style.TabWidth, Encoding);
1367 if (MacroBlockBeginRegex.match(Text))
1369 else if (MacroBlockEndRegex.match(Text))