MCPcopy Create free account
hub / github.com/apache/tomcat / setImage

Method setImage

java/org/apache/el/parser/AstString.java:48–68  ·  view source on GitHub ↗
(String image)

Source from the content-addressed store, hash-verified

46 }
47
48 @Override
49 public void setImage(String image) {
50 if (image.indexOf('\\') == -1) {
51 this.image = image;
52 return;
53 }
54 int size = image.length();
55 StringBuilder buf = new StringBuilder(size);
56 for (int i = 0; i < size; i++) {
57 char c = image.charAt(i);
58 if (c == '\\' && i + 1 < size) {
59 char c1 = image.charAt(i + 1);
60 if (c1 == '\\' || c1 == '"' || c1 == '\'') {
61 c = c1;
62 i++;
63 }
64 }
65 buf.append(c);
66 }
67 this.image = buf.toString();
68 }
69}

Callers 3

StringMethod · 0.95
FloatingPointMethod · 0.45
IntegerMethod · 0.45

Calls 5

lengthMethod · 0.80
charAtMethod · 0.80
toStringMethod · 0.65
indexOfMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected