Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for setBits (0.2 sec)

  1. android/guava/src/com/google/common/base/CharMatcher.java

        }
    
        @GwtIncompatible // used only from other GwtIncompatible code
        @Override
        void setBits(BitSet table) {
          BitSet tmp1 = new BitSet();
          first.setBits(tmp1);
          BitSet tmp2 = new BitSet();
          second.setBits(tmp2);
          tmp1.and(tmp2);
          table.or(tmp1);
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/CharMatcher.java

        }
    
        @GwtIncompatible // used only from other GwtIncompatible code
        @Override
        void setBits(BitSet table) {
          BitSet tmp1 = new BitSet();
          first.setBits(tmp1);
          BitSet tmp2 = new BitSet();
          second.setBits(tmp2);
          tmp1.and(tmp2);
          table.or(tmp1);
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/SmallCharMatcher.java

            index = (index + 1) & mask;
          }
          // Check to see if we wrapped around the whole table.
        } while (index != startingIndex);
        return false;
      }
    
      @Override
      void setBits(BitSet table) {
        if (containsZero) {
          table.set(0);
        }
        for (char c : this.table) {
          if (c != 0) {
            table.set(c);
          }
        }
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/SmallCharMatcher.java

            index = (index + 1) & mask;
          }
          // Check to see if we wrapped around the whole table.
        } while (index != startingIndex);
        return false;
      }
    
      @Override
      void setBits(BitSet table) {
        if (containsZero) {
          table.set(0);
        }
        for (char c : this.table) {
          if (c != 0) {
            table.set(c);
          }
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/bytes/bytes.go

    	n := 0
    	wasSpace := 1
    	// setBits is used to track which bits are set in the bytes of s.
    	setBits := uint8(0)
    	for i := 0; i < len(s); i++ {
    		r := s[i]
    		setBits |= r
    		isSpace := int(asciiSpace[r])
    		n += wasSpace & ^isSpace
    		wasSpace = isSpace
    	}
    
    	if setBits >= utf8.RuneSelf {
    		// Some runes in the input slice are not ASCII.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestSetBits(inRange('A', 'Z').and(inRange('F', 'K').negate()));
      }
    
      @GwtIncompatible // java.util.BitSet
      private void doTestSetBits(CharMatcher matcher) {
        BitSet bitset = new BitSet();
        matcher.setBits(bitset);
        for (int i = Character.MIN_VALUE; i <= Character.MAX_VALUE; i++) {
          assertEquals(matcher.matches((char) i), bitset.get(i));
        }
      }
    
      public void testEmpty() throws Exception {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        doTestSetBits(inRange('A', 'Z').and(inRange('F', 'K').negate()));
      }
    
      @GwtIncompatible // java.util.BitSet
      private void doTestSetBits(CharMatcher matcher) {
        BitSet bitset = new BitSet();
        matcher.setBits(bitset);
        for (int i = Character.MIN_VALUE; i <= Character.MAX_VALUE; i++) {
          assertEquals(matcher.matches((char) i), bitset.get(i));
        }
      }
    
      public void testEmpty() throws Exception {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Sets.java

        }
    
        @Override
        public Iterator<Set<E>> iterator() {
          return new AbstractIndexedListIterator<Set<E>>(size()) {
            @Override
            protected Set<E> get(final int setBits) {
              return new SubSet<>(inputSet, setBits);
            }
          };
        }
    
        @Override
        public boolean contains(@CheckForNull Object obj) {
          if (obj instanceof Set) {
            Set<?> set = (Set<?>) obj;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 77.2K bytes
    - Viewed (0)
  9. guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

      @BeforeExperiment
      void setUp() {
        this.matcher = precomputed ? config.matcher.precomputed() : config.matcher;
        if (size == Size.SMALL) {
          BitSet tmp = new BitSet();
          matcher.setBits(tmp);
          int matchedCharCount = tmp.cardinality();
          this.matcher = SmallCharMatcher.from(tmp, "");
        }
        this.string = checkString(length, percent, config.matchingChars, new Random(), forceSlow, web);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
  10. android/guava-tests/benchmark/com/google/common/base/CharMatcherBenchmark.java

      @BeforeExperiment
      void setUp() {
        this.matcher = precomputed ? config.matcher.precomputed() : config.matcher;
        if (size == Size.SMALL) {
          BitSet tmp = new BitSet();
          matcher.setBits(tmp);
          int matchedCharCount = tmp.cardinality();
          this.matcher = SmallCharMatcher.from(tmp, "");
        }
        this.string = checkString(length, percent, config.matchingChars, new Random(), forceSlow, web);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 194.8K bytes
    - Viewed (0)
Back to top