- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for SmallCharMatcher (0.08 seconds)
-
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;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 4.5K bytes - Click Count (0) -
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;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 12 03:49:18 GMT 2025 - 4.5K bytes - Click Count (0) -
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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.9K bytes - Click Count (0) -
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);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 54.4K bytes - Click Count (0) -
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('!'));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 32.4K bytes - Click Count (0)