• Home
  • Raw
  • Download

Lines Matching refs:RB

57 void html::HighlightRange(RewriteBuffer &RB, unsigned B, unsigned E,  in HighlightRange()  argument
61 RB.InsertTextAfter(B, StartTag); in HighlightRange()
62 RB.InsertTextBefore(E, EndTag); in HighlightRange()
76 RB.InsertTextBefore(LastNonWhiteSpace+1, EndTag); in HighlightRange()
95 RB.InsertTextAfter(i, StartTag); in HighlightRange()
115 RewriteBuffer &RB = R.getEditBuffer(FID); in EscapeText() local
128 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()
208 static void AddLineNumber(RewriteBuffer &RB, unsigned LineNo, in AddLineNumber() argument
219 RB.InsertTextBefore(B, OS.str()); in AddLineNumber()
221 RB.InsertTextBefore(B, OS.str()); in AddLineNumber()
222 RB.InsertTextBefore(E, "</td></tr>"); in AddLineNumber()
232 RewriteBuffer &RB = R.getEditBuffer(FID); in AddLineNumbers() local
262 AddLineNumber(RB, LineNo, LineStartPos, LineEndPos); in AddLineNumbers()
266 RB.InsertTextBefore(0, "<table class=\"code\">\n"); in AddLineNumbers()
267 RB.InsertTextAfter(FileEnd - FileBeg, "</table>"); in AddLineNumbers()
358 RewriteBuffer &RB = R.getEditBuffer(FID); in SyntaxHighlight() local
390 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
395 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
412 HighlightRange(RB, TokOffs, TokOffs+TokLen, BufferStart, in SyntaxHighlight()
430 HighlightRange(RB, TokOffs, TokEnd, BufferStart, in SyntaxHighlight()