Lines Matching defs:bitSet
25 import java.util.BitSet;
63 BitSet bitSet = new BitSet();
65 bitSet.set(OLD_WHITESPACE_TABLE.charAt(i));
67 bitSet.clear(0);
68 bitSet.clear(1);
70 teststring = newTestString(new Random(1), bitSet, percentMatching);
93 private static String allMatchingChars(BitSet bitSet) {
94 final char[] result = new char[bitSet.cardinality()];
95 for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) {
97 c = bitSet.nextSetBit(c + 1);
102 private static String newTestString(Random random, BitSet bitSet, int percentMatching) {
103 final String allMatchingChars = allMatchingChars(bitSet);
113 if (bitSet.get(c)) {
115 if (bitSet.get(result[pos])) {