MCPcopy Index your code
hub / github.com/antlr/codebuff / replaceEscapes

Method replaceEscapes

output/java8/1.4.12/Misc.java:133–138  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

131 }
132
133 public static String replaceEscapes(String s) {
134 s = s.replaceAll("\n", "\\\\n");
135 s = s.replaceAll("\r", "\\\\r");
136 s = s.replaceAll("\t", "\\\\t");
137 return s;
138 }
139
140 /** Replace >\> with >> in s. Replace \>> unless prefix of \>>> with >>.
141 * Do NOT replace if it's <\\>

Callers 3

showConstPoolOperandMethod · 0.95
stringsMethod · 0.95
toStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected