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

Method replaceEscapes

output/java8/1.4.14/Misc.java:131–136  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

129 }
130
131 public static String replaceEscapes(String s) {
132 s = s.replaceAll("\n", "\\\\n");
133 s = s.replaceAll("\r", "\\\\r");
134 s = s.replaceAll("\t", "\\\\t");
135 return s;
136 }
137
138 /** Replace >\> with >> in s. Replace \>> unless prefix of \>>> with >>.
139 * 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