Find the position of the last slash in the given char chunk.
(CharChunk name)
| 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 | /** |
no test coverage detected