Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for SmallCharMatcher (0.06 sec)

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

     *
     * @author Christopher Swenson
     */
    @GwtIncompatible // no precomputation is done in GWT
    final class SmallCharMatcher extends NamedFastMatcher {
      static final int MAX_SIZE = 1023;
      private final char[] table;
      private final boolean containsZero;
      private final long filter;
    
      private SmallCharMatcher(char[] table, long filter, boolean containsZero, String description) {
        super(description);
        this.table = table;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

      @GwtIncompatible // java.util.Random, java.util.BitSet
      public void testSmallCharMatcher() {
        CharMatcher len1 = SmallCharMatcher.from(bitSet("#"), "#");
        CharMatcher len2 = SmallCharMatcher.from(bitSet("ab"), "ab");
        CharMatcher len3 = SmallCharMatcher.from(bitSet("abc"), "abc");
        CharMatcher len4 = SmallCharMatcher.from(bitSet("abcd"), "abcd");
        assertTrue(len1.matches('#'));
        assertFalse(len1.matches('!'));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/CharMatcherTest.java

      @GwtIncompatible // java.util.Random, java.util.BitSet
      public void testSmallCharMatcher() {
        CharMatcher len1 = SmallCharMatcher.from(bitSet("#"), "#");
        CharMatcher len2 = SmallCharMatcher.from(bitSet("ab"), "ab");
        CharMatcher len3 = SmallCharMatcher.from(bitSet("abc"), "abc");
        CharMatcher len4 = SmallCharMatcher.from(bitSet("abcd"), "abcd");
        assertTrue(len1.matches('#'));
        assertFalse(len1.matches('!'));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/CharMatcher.java

          default:
            return isSmall(totalCharacters, table.length())
                ? SmallCharMatcher.from(table, description)
                : new BitSetMatcher(table, description);
        }
      }
    
      @GwtIncompatible // SmallCharMatcher
      private static boolean isSmall(int totalCharacters, int tableLength) {
        return totalCharacters <= SmallCharMatcher.MAX_SIZE
            && tableLength > (totalCharacters * 4 * Character.SIZE);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 53.9K bytes
    - Viewed (0)
Back to top