Lines Matching refs:text
48 bool Commit::insert(SourceLocation loc, StringRef text,
50 if (text.empty())
60 addInsert(loc, Offs, text, beforePreviousInsertions);
116 bool Commit::replace(CharSourceRange range, StringRef text) {
117 if (text.empty())
128 addInsert(range.getBegin(), Offs, text, false);
165 bool Commit::replaceText(SourceLocation loc, StringRef text,
167 if (text.empty() || replacementText.empty())
178 addInsert(loc, Offs, text, false);
182 void Commit::addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text,
184 if (text.empty())
191 data.Text = text.copy(StrAlloc);
323 bool Commit::canReplaceText(SourceLocation loc, StringRef text,
325 assert(!text.empty());
336 Len = text.size();
337 return file.substr(Offs.getOffset()).startswith(text);