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

Method lastSlash

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

Find the position of the last slash in the given char chunk.

(CharChunk name)

Source from the content-addressed store, hash-verified

1426 * Find the position of the last slash in the given char chunk.
1427 */
1428 private static int lastSlash(CharChunk name) {
1429 char[] c = name.getBuffer();
1430 int end = name.getEnd();
1431 int start = name.getStart();
1432 int pos = end;
1433
1434 while (pos > start) {
1435 if (c[--pos] == '/') {
1436 break;
1437 }
1438 }
1439
1440 return pos;
1441 }
1442
1443
1444 /**

Callers 2

internalMapMethod · 0.95

Calls 3

getBufferMethod · 0.65
getEndMethod · 0.45
getStartMethod · 0.45

Tested by

no test coverage detected