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

Method rtrim

java/org/apache/jasper/compiler/Node.java:2425–2431  ·  view source on GitHub ↗

Trim all whitespace from the right of the template text

()

Source from the content-addressed store, hash-verified

2423 * Trim all whitespace from the right of the template text
2424 */
2425 public void rtrim() {
2426 int index = text.length();
2427 while ((index > 0) && (text.charAt(index - 1) <= ' ')) {
2428 index--;
2429 }
2430 text = text.substring(0, index);
2431 }
2432
2433 /**
2434 * Checks if this template text contains whitespace only.

Callers 2

endElementMethod · 0.80
parseNamedAttributesMethod · 0.80

Calls 2

lengthMethod · 0.80
charAtMethod · 0.80

Tested by

no test coverage detected