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

Method slashCount

java/org/apache/catalina/mapper/Mapper.java:1467–1474  ·  view source on GitHub ↗

Return the slash count in a given string.

(String name)

Source from the content-addressed store, hash-verified

1465 * Return the slash count in a given string.
1466 */
1467 private static int slashCount(String name) {
1468 int pos = -1;
1469 int count = 0;
1470 while ((pos = name.indexOf('/', pos + 1)) != -1) {
1471 count++;
1472 }
1473 return count;
1474 }
1475
1476
1477 /**

Callers 4

addContextVersionMethod · 0.95
addWrapperMethod · 0.95
removeWrapperMethod · 0.95
removeContextMethod · 0.80

Calls 1

indexOfMethod · 0.45

Tested by

no test coverage detected