MCPcopy Create free account
hub / github.com/antlr/codebuff / matches

Method matches

output/java_guava/1.4.13/CharMatcher.java:1477–1486  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

1475 }
1476
1477 @Override
1478 public boolean matches(char c) {
1479 int index = Arrays.binarySearch(rangeStarts, c);
1480 if (index >= 0) {
1481 return true;
1482 } else {
1483 index = ~index - 1;
1484 return index >= 0 && c <= rangeEnds[index];
1485 }
1486 }
1487
1488 @Override
1489 public String toString() {

Callers

nothing calls this directly

Calls 1

binarySearchMethod · 0.45

Tested by

no test coverage detected