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

Method exactFindIgnoreCase

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

Find a map element given its name in a sorted array of map elements. This will return the element that you were searching for. Otherwise it will return null . @see #findIgnoreCase(MapElement[], CharChunk)

(E[] map, CharChunk name)

Source from the content-addressed store, hash-verified

1336 * @see #findIgnoreCase(MapElement[], CharChunk)
1337 */
1338 private static <T, E extends MapElement<T>> E exactFindIgnoreCase(E[] map, CharChunk name) {
1339 int pos = findIgnoreCase(map, name);
1340 if (pos >= 0) {
1341 E result = map[pos];
1342 if (name.equalsIgnoreCase(result.name)) {
1343 return result;
1344 }
1345 }
1346 return null;
1347 }
1348
1349
1350 /**

Callers 1

internalMapMethod · 0.95

Calls 2

findIgnoreCaseMethod · 0.95
equalsIgnoreCaseMethod · 0.45

Tested by

no test coverage detected