Lines Matching defs:Text
82 bool WhitespaceManager::inputUsesCRLF(StringRef Text, bool DefaultToCRLF) {
83 size_t LF = Text.count('\n');
84 size_t CR = Text.count('\r') * 2;
148 StringRef Text(PreviousOriginalWhitespaceEndData,
172 auto NewlinePos = Text.find_first_of('\n');
1691 void WhitespaceManager::storeReplacement(SourceRange Range, StringRef Text) {
1696 WhitespaceLength) == Text) {
1700 SourceMgr, CharSourceRange::getCharRange(Range), Text));
1709 void WhitespaceManager::appendNewlineText(std::string &Text,
1712 Text.reserve(Text.size() + 2 * Newlines);
1714 Text.append("\r\n");
1716 Text.append(Newlines, '\n');
1721 std::string &Text, unsigned Newlines, unsigned PreviousEndOfTokenColumn,
1727 Text.append(Spaces, ' ');
1728 Text.append(UseCRLF ? "\\\r\n" : "\\\n");
1734 void WhitespaceManager::appendIndentText(std::string &Text,
1740 Text.append(Spaces, ' ');
1749 Text.append(Spaces, ' ');
1754 Text.append("\t");
1756 Text.append(Spaces / Style.TabWidth, '\t');
1757 Text.append(Spaces % Style.TabWidth, ' ');
1759 Text.append(Spaces, ' ');
1766 Spaces = appendTabIndent(Text, Spaces, Indentation);
1768 Text.append(Spaces, ' ');
1772 Spaces = appendTabIndent(Text, Spaces, Spaces);
1773 Text.append(Spaces, ' ');
1779 Spaces = appendTabIndent(Text, Spaces, Indentation);
1781 Text.append(Spaces, ' ');
1786 unsigned WhitespaceManager::appendTabIndent(std::string &Text, unsigned Spaces,
1794 Text.append(Tabs, '\t');