MCPcopy
hub / github.com/bazelbuild/bazel / appendQuoted

Method appendQuoted

src/main/java/net/starlark/java/eval/Printer.java:225–233  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

223 }
224
225 private Printer appendQuoted(String s) {
226 this.append('"');
227 int len = s.length();
228 for (int i = 0; i < len; i++) {
229 char c = s.charAt(i);
230 escapeCharacter(c);
231 }
232 return this.append('"');
233 }
234
235 private Printer backslashChar(char c) {
236 return this.append('\\').append(c);

Callers 1

reprMethod · 0.95

Calls 4

appendMethod · 0.95
escapeCharacterMethod · 0.95
charAtMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected