MCPcopy Create free account
hub / github.com/antlr/codebuff / replaceEscapes

Method replaceEscapes

output/java/1.4.13/Misc.java:135–140  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

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