Home
last modified time | relevance | path

Searched refs:ReplaceText (Results 1 – 13 of 13) sorted by relevance

/external/protobuf/
Dupdate_version.py53 def ReplaceText(elem, text): function
211 lambda document : ReplaceText(
217 lambda document : ReplaceText(
224 lambda document : ReplaceText(
228 lambda document : ReplaceText(
232 lambda document : ReplaceText(
237 lambda document : ReplaceText(
242 lambda document : ReplaceText(
247 lambda document : ReplaceText(
252 lambda document : ReplaceText(
[all …]
/external/cronet/third_party/protobuf/
Dupdate_version.py53 def ReplaceText(elem, text): function
223 lambda document : ReplaceText(
229 lambda document : ReplaceText(
236 lambda document : ReplaceText(
240 lambda document : ReplaceText(
244 lambda document : ReplaceText(
249 lambda document : ReplaceText(
254 lambda document : ReplaceText(
259 lambda document : ReplaceText(
264 lambda document : ReplaceText(
[all …]
/external/clang/unittests/Tooling/
DRewriterTest.cpp21 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST()
30 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST()
33 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
/external/clang/include/clang/Rewrite/Core/
DRewriter.h137 bool ReplaceText(SourceLocation Start, unsigned OrigLength,
143 bool ReplaceText(SourceRange range, StringRef NewStr) { in ReplaceText() function
144 return ReplaceText(range.getBegin(), getRangeSize(range), NewStr); in ReplaceText()
150 bool ReplaceText(SourceRange range, SourceRange replacementRange);
DRewriteBuffer.h87 void ReplaceText(unsigned OrigOffset, unsigned OrigLength,
/external/clang/lib/Rewrite/
DHTMLRewrite.cpp128 RB.ReplaceText(FilePos, 1, " "); in EscapeText()
132 RB.ReplaceText(FilePos, 1, "<hr>"); in EscapeText()
141 RB.ReplaceText(FilePos, 1, in EscapeText()
145 RB.ReplaceText(FilePos, 1, StringRef(" ", NumSpaces)); in EscapeText()
150 RB.ReplaceText(FilePos, 1, "&lt;"); in EscapeText()
155 RB.ReplaceText(FilePos, 1, "&gt;"); in EscapeText()
160 RB.ReplaceText(FilePos, 1, "&amp;"); in EscapeText()
DRewriter.cpp108 void RewriteBuffer::ReplaceText(unsigned OrigOffset, unsigned OrigLength, in ReplaceText() function in RewriteBuffer
303 bool Rewriter::ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in Rewriter
309 getEditBuffer(StartFileID).ReplaceText(StartOffs, OrigLength, NewStr); in ReplaceText()
313 bool Rewriter::ReplaceText(SourceRange range, SourceRange replacementRange) { in ReplaceText() function in Rewriter
324 return ReplaceText(start, origLength, MB.substr(newOffs, newLength)); in ReplaceText()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp229 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange()
249 void ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in __anon4905ea610111::RewriteObjC
252 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText()
749 ReplaceText(ImportLoc, ImportLen, "include"); in RewriteInclude()
907 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue()
953 ReplaceText(LocEnd, 1, ";\n#endif\n"); in RewriteMethodDeclaration()
962 ReplaceText(Loc, 0, "// "); in RewriteProperty()
970 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
980 ReplaceText(CatDecl->getAtEndRange().getBegin(), in RewriteCategoryDecl()
989 ReplaceText(LocStart, 0, "// "); in RewriteProtocolDecl()
[all …]
DRewriteModernObjC.cpp278 if (!Rewrite.ReplaceText(SrcRange.getBegin(), Size, Str)) { in ReplaceStmtWithRange()
298 void ReplaceText(SourceLocation Start, unsigned OrigLength, in ReplaceText() function in __anona72327e60111::RewriteModernObjC
301 if (!Rewrite.ReplaceText(Start, OrigLength, Str) || in ReplaceText()
820 ReplaceText(ImportLoc, ImportLen, "include"); in RewriteInclude()
1064 ReplaceText(startLoc, semiPtr-startBuf+1, typedefString); in RewriteForwardClassEpilogue()
1114 ReplaceText(LocEnd, 1, ";\n#endif\n"); in RewriteMethodDeclaration()
1123 ReplaceText(Loc, 0, "// "); in RewriteProperty()
1132 ReplaceText(LocStart, 1, "/** "); in RewriteCategoryDecl()
1133 ReplaceText(CatDecl->getIvarRBraceLoc(), 1, "**/ "); in RewriteCategoryDecl()
1136 ReplaceText(LocStart, 0, "// "); in RewriteCategoryDecl()
[all …]
DFixItRewriter.cpp68 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()
/external/bcc/src/cc/frontends/clang/
Db_frontend_action.cc511 rewriter_.ReplaceText(expansionLoc(E->getOperatorLoc()), 1, pre); in VisitUnaryOperator()
576 rewriter_.ReplaceText(expansionRange(SourceRange(member, GET_ENDLOC(E))), post); in VisitMemberExpr()
641 rewriter_.ReplaceText(lbracket_range, lbracket); in VisitArraySubscriptExpr()
644 rewriter_.ReplaceText(expansionLoc(E->getRBracketLoc()), 1, rbracket); in VisitArraySubscriptExpr()
797 rewriter_.ReplaceText( in rewriteFuncParam()
804 rewriter_.ReplaceText(S->getLBracLoc(), 1, preamble); in rewriteFuncParam()
1133 rewriter_.ReplaceText(expansionRange(SourceRange(rewrite_start, rewrite_end)), txt); in VisitCallExpr()
1172 rewriter_.ReplaceText(expansionRange(Call->getSourceRange()), text); in VisitCallExpr()
1177 rewriter_.ReplaceText(expansionRange(Call->getSourceRange()), text); in VisitCallExpr()
1185 rewriter_.ReplaceText(expansionRange(Call->getSourceRange()), text); in VisitCallExpr()
[all …]
/external/clang/lib/Tooling/Core/
DReplacement.cpp69 bool RewriteSucceeded = !Rewrite.ReplaceText( in apply()
/external/clang/lib/ARCMigrate/
DObjCMT.cpp1762 Rewrite.ReplaceText(range.getBegin(), Rewrite.getRangeSize(range), text); in replace()