Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for Scharf (0.15 sec)

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

      }
    
      static CharMatcher from(BitSet chars, String description) {
        // Compute the filter.
        long filter = 0;
        int size = chars.cardinality();
        boolean containsZero = chars.get(0);
        // Compute the hash table.
        char[] table = new char[chooseTableSize(size)];
        int mask = table.length - 1;
        for (int c = chars.nextSetBit(0); c != -1; c = chars.nextSetBit(c + 1)) {
    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)
  2. guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

              private final char[] unknown = new char[] {'?'};
    
              @Override
              protected char[] escapeUnsafe(char c) {
                return unknown;
              }
            };
        EscaperAsserts.assertBasic(replacingEscaper);
    
        // Replacements are applied first regardless of whether the character is in
        // the safe range or not ('&' is a safe char while '\t' and '\n' are not).
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/Utf8Test.java

          actual += expected;
        }
        assertEquals(EXPECTED_FOUR_BYTE_ROUNDTRIPPABLE_COUNT, actual);
      }
    
      private static String newString(char... chars) {
        return new String(chars);
      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/AsciiTest.java

      }
    
      public void testCharsIgnored() {
        for (char c : IGNORED.toCharArray()) {
          String str = String.valueOf(c);
          assertEquals(str, c, Ascii.toLowerCase(c));
          assertEquals(str, c, Ascii.toUpperCase(c));
          assertFalse(str, Ascii.isLowerCase(c));
          assertFalse(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testCharsLower() {
        for (char c : LOWER.toCharArray()) {
          String str = String.valueOf(c);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        // read char by char
        CharSequenceReader reader = new CharSequenceReader(charSequence);
        for (int i = 0; i < expected.length(); i++) {
          assertEquals(expected.charAt(i), reader.read());
        }
        assertFullyRead(reader);
    
        // read all to one array
        reader = new CharSequenceReader(charSequence);
        char[] buf = new char[expected.length()];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        public static final String MIN_ELEMENT = "a";
        public static final String AFTER_LAST = "z";
        public static final String AFTER_LAST_2 = "zz";
      }
    
      public static class Chars extends SampleElements<Character> {
        public Chars() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super('b', 'a', 'c', 'd', 'e');
        }
      }
    
      public static class Enums extends SampleElements<AnEnum> {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        public static final String MIN_ELEMENT = "a";
        public static final String AFTER_LAST = "z";
        public static final String AFTER_LAST_2 = "zz";
      }
    
      public static class Chars extends SampleElements<Character> {
        public Chars() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super('b', 'a', 'c', 'd', 'e');
        }
      }
    
      public static class Enums extends SampleElements<AnEnum> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Preconditions.java

       *
       * @since 20.0 (varargs overload since 2.0)
       */
      public static void checkArgument(
          boolean expression, String errorMessageTemplate, char p1, char p2) {
        if (!expression) {
          throw new IllegalArgumentException(lenientFormat(errorMessageTemplate, p1, p2));
        }
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/TreeTraverserTest.java

    @ElementTypesAreNonnullByDefault
    public class TreeTraverserTest extends TestCase {
      private static class Node {
        final char value;
    
        Node(char value) {
          this.value = value;
        }
      }
    
      private static final class Tree extends Node {
        final List<Tree> children;
    
        public Tree(char value, Tree... children) {
          super(value);
          this.children = Arrays.asList(children);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/TraverserTest.java

        for (String edge : edges) {
          checkArgument(
              edge.length() == 2, "Expecting each edge to consist of 2 characters but got %s", edge);
          char node1 = edge.charAt(0);
          char node2 = edge.charAt(1);
          graphMapBuilder.put(node1, node2);
          if (!directed) {
            graphMapBuilder.put(node2, node1);
          }
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 47.5K bytes
    - Viewed (0)
Back to top