Home
last modified time | relevance | path

Searched refs:bitSet (Results 1 – 16 of 16) sorted by relevance

/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/sets/
DANTLRBitSetTest.m19 ANTLRBitSet *bitSet = [ANTLRBitSet newANTLRBitSetWithBits:bitData Count:2];
20 CFIndex actual = (CFIndex)[bitSet numBits];
24 [bitSet release];
42 ANTLRBitSet *bitSet = [ANTLRBitSet newANTLRBitSetWithArray:bits];
43 CFIndex actual = (CFIndex)[bitSet numBits];
46 [bitSet release];
52 ANTLRBitSet *bitSet = [ANTLRBitSet newANTLRBitSet];
53 [bitSet add:1];
54 [bitSet add:2];
55 [bitSet add:3];
[all …]
/external/antlr/antlr-3.4/runtime/ActionScript/project/test/org/antlr/runtime/test/
DTestBitSet.as10 var bitSet:BitSet = new BitSet();
12 assertEquals(0, bitSet.numBits);
13 assertEquals(0, bitSet.toPackedArray().length);
14 assertEquals(0, bitSet.size);
15 assertTrue(bitSet.isNil);
16 assertEquals("{}", bitSet.toString());
18 bitSet = BitSet.of(0, 1, 2);
19 assertEquals(32, bitSet.numBits);
20 assertEquals(1, bitSet.toPackedArray().length);
21 //assertEquals(1, bitSet.size);
[all …]
/external/guava/guava-tests/benchmark/com/google/common/base/
DWhitespaceMatcherBenchmark.java63 BitSet bitSet = new BitSet(); in setUp() local
65 bitSet.set(OLD_WHITESPACE_TABLE.charAt(i)); in setUp()
67 bitSet.clear(0); in setUp()
68 bitSet.clear(1); in setUp()
70 teststring = newTestString(new Random(1), bitSet, percentMatching); in setUp()
93 private static String allMatchingChars(BitSet bitSet) { in allMatchingChars() argument
94 final char[] result = new char[bitSet.cardinality()]; in allMatchingChars()
95 for (int j = 0, c = bitSet.nextSetBit(0); j < result.length; ++j) { in allMatchingChars()
97 c = bitSet.nextSetBit(c + 1); in allMatchingChars()
102 private static String newTestString(Random random, BitSet bitSet, int percentMatching) { in newTestString() argument
[all …]
/external/caliper/examples/src/main/java/examples/
DBitSetBenchmark.java89 private BitSet bitSet; field in BitSetBenchmark
93 bitSet = new BitSet(64); in setUp()
107 bitSet.set(i & 0x3F, true); in setBitSetX64()
109 return bitSet.hashCode(); in setBitSetX64()
137 bitSet.set(n, bitString[n] == '1'); in charsToBitSet()
140 return bitSet.toString(); in charsToBitSet()
/external/smali/util/src/main/java/org/jf/util/
DBitSetUtils.java38 BitSet bitSet = new BitSet(); in bitSetOfIndexes() local
40 bitSet.set(index); in bitSetOfIndexes()
42 return bitSet; in bitSetOfIndexes()
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3tokenstream.c772 pANTLR3_BITSET bitSet; in getTokensList() local
775 bitSet = antlr3BitsetList(list->table); in getTokensList()
777 newlist = tokenStream->getTokensSet(tokenStream, start, stop, bitSet); in getTokensList()
779 bitSet->free(bitSet); in getTokensList()
788 pANTLR3_BITSET bitSet; in getTokensType() local
791 bitSet = antlr3BitsetOf(type, -1); in getTokensType()
792 newlist = tokenStream->getTokensSet(tokenStream, start, stop, bitSet); in getTokensType()
794 bitSet->free(bitSet); in getTokensType()
Dantlr3bitset.c210 pANTLR3_BITSET bitSet; in antlr3BitsetList() local
219 bitSet = antlr3BitsetNew(0); in antlr3BitsetList()
225 bitSet->add(bitSet, (ANTLR3_UINT32)bit); in antlr3BitsetList()
/external/icu/icu4c/source/test/perf/utrie2perf/
Dutrie2perf.cpp221 uint32_t bitSet=0; in call() local
224 bitSet|=(uint32_t)1<<u_charDirection(c); in call()
226 if(length>0 && bitSet==0) { in call()
/external/guava/guava-tests/test/com/google/common/base/
DCharMatcherTest.java670 private static BitSet bitSet(String chars) { in bitSet() method in CharMatcherTest
671 return bitSet(chars.toCharArray()); in bitSet()
675 private static BitSet bitSet(char[] chars) { in bitSet() method in CharMatcherTest
685 CharMatcher len1 = SmallCharMatcher.from(bitSet("#"), "#"); in testSmallCharMatcher()
686 CharMatcher len2 = SmallCharMatcher.from(bitSet("ab"), "ab"); in testSmallCharMatcher()
687 CharMatcher len3 = SmallCharMatcher.from(bitSet("abc"), "abc"); in testSmallCharMatcher()
688 CharMatcher len4 = SmallCharMatcher.from(bitSet("abcd"), "abcd"); in testSmallCharMatcher()
713 CharMatcher m = SmallCharMatcher.from(bitSet(chars), new String(chars)); in testSmallCharMatcher()
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRBaseRecognizer.h154 - (void) consumeUntilFollow:(id<ANTLRIntStream>)anInput Follow:(ANTLRBitSet *)bitSet;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRBaseRecognizer.h154 - (void) consumeUntilFollow:(id<ANTLRIntStream>)anInput Follow:(ANTLRBitSet *)bitSet;
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRBaseRecognizer.h146 - (void) consumeUntilFollow:(id<ANTLRIntStream>)anInput Follow:(ANTLRBitSet *)bitSet;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRBaseRecognizer.h154 - (void) consumeUntilFollow:(id<ANTLRIntStream>)anInput Follow:(ANTLRBitSet *)bitSet;
/external/deqp/modules/egl/
DteglResizeTests.cpp315 inline bool hasBits (T bitSet, T requiredBits) in hasBits() argument
317 return (bitSet & requiredBits) == requiredBits; in hasBits()
/external/guava/guava/src/com/google/common/base/
DCharMatcher.java902 void setBits(BitSet bitSet) {
903 bitSet.or(table);
/external/antlr/antlr-3.4/runtime/ActionScript/project/src/org/antlr/runtime/
DBaseRecognizer.as652 public function consumeUntil(input:IntStream, bitSet:BitSet):void {
653 //trace("consumeUntil("+bitSet.toStringFromTokens(tokenNames)+")");
655 while (ttype != TokenConstants.EOF && !bitSet.member(ttype) ) {