Return the slash count in a given string.
(String name)
| 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 | /** |
no test coverage detected