(CharacterMatcher other)
| 129 | } |
| 130 | |
| 131 | private void intersect(CharacterMatcher other) { |
| 132 | boolean inversePattern = this.inversePattern && other.inversePattern; |
| 133 | if ((map.length > other.map.length) ^ inversePattern) { |
| 134 | map = java.util.Arrays.copyOf(map, other.map.length); |
| 135 | } |
| 136 | for (int i = 0; i < map.length; ++ i) { |
| 137 | map[i] = (matches((char)i) && other.matches((char)i)) ^ inversePattern; |
| 138 | } |
| 139 | this.inversePattern = inversePattern; |
| 140 | } |
| 141 | |
| 142 | static class Parser { |
| 143 | private final char[] description; |
no test coverage detected