MCPcopy Index your code
hub / github.com/apache/tomcat / quote

Method quote

java/org/apache/jasper/compiler/Generator.java:114–121  ·  view source on GitHub ↗

@param s the input string @return quoted and escaped string, per Java rule

(String s)

Source from the content-addressed store, hash-verified

112 * @return quoted and escaped string, per Java rule
113 */
114 static String quote(String s) {
115
116 if (s == null) {
117 return "null";
118 }
119
120 return '"' + escape(s) + '"';
121 }
122
123 /**
124 * @param s the input string - must not be {@code null}

Callers 15

testQuote01Method · 0.95
testQuote02Method · 0.95
testQuote03Method · 0.95
testQuote04Method · 0.95
testQuote05Method · 0.95
interpreterCallMethod · 0.95
coerceToBooleanMethod · 0.95
coerceToByteMethod · 0.95
coerceToDoubleMethod · 0.95
coerceToFloatMethod · 0.95
coerceToIntegerMethod · 0.95
coerceToShortMethod · 0.95

Calls 3

escapeMethod · 0.95
toStringMethod · 0.65
appendMethod · 0.45

Tested by 5

testQuote01Method · 0.76
testQuote02Method · 0.76
testQuote03Method · 0.76
testQuote04Method · 0.76
testQuote05Method · 0.76