Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for CharMatcher (0.17 sec)

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

        @Override
        public String toString() {
          return "CharMatcher.and(" + first + ", " + second + ")";
        }
      }
    
      /** Implementation of {@link #or(CharMatcher)}. */
      private static final class Or extends CharMatcher {
    
        final CharMatcher first;
        final CharMatcher second;
    
        Or(CharMatcher a, CharMatcher b) {
          first = checkNotNull(a);
          second = checkNotNull(b);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  2. refactorings/CharMatcherRewrite.java

        @AfterTemplate
        CharMatcher after() {
          return CharMatcher.ascii();
        }
      }
    
      class Digit {
        @BeforeTemplate
        CharMatcher before() {
          return CharMatcher.DIGIT;
        }
    
        @AfterTemplate
        CharMatcher after() {
          return CharMatcher.digit();
        }
      }
    
      class JavaDigit {
        @BeforeTemplate
        CharMatcher before() {
          return CharMatcher.JAVA_DIGIT;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 28 19:03:28 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertSame(CharMatcher.any(), CharMatcher.none().negate());
        assertSame(CharMatcher.none(), CharMatcher.any().negate());
    
        assertSame(WHATEVER, CharMatcher.any().and(WHATEVER));
        assertSame(CharMatcher.any(), CharMatcher.any().or(WHATEVER));
    
        assertSame(CharMatcher.none(), CharMatcher.none().and(WHATEVER));
        assertSame(WHATEVER, CharMatcher.none().or(WHATEVER));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      public static final CharMatcher OLD_WHITESPACE =
          new CharMatcher() {
            @Override
            public boolean matches(char c) {
              return OLD_WHITESPACE_TABLE.charAt(c % 79) == c;
            }
          };
    
      @Param private boolean useNew;
    
      @Param({"20", "50", "80"})
      private int percentMatching;
    
      private String teststring;
      private CharMatcher matcher;
    
      @BeforeExperiment
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/base/WhitespaceMatcherBenchmark.java

      public static final CharMatcher OLD_WHITESPACE =
          new CharMatcher() {
            @Override
            public boolean matches(char c) {
              return OLD_WHITESPACE_TABLE.charAt(c % 79) == c;
            }
          };
    
      @Param private boolean useNew;
    
      @Param({"20", "50", "80"})
      private int percentMatching;
    
      private String teststring;
      private CharMatcher matcher;
    
      @BeforeExperiment
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 16 22:49:59 UTC 2018
    - 3.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertSame(CharMatcher.any(), CharMatcher.none().negate());
        assertSame(CharMatcher.none(), CharMatcher.any().negate());
    
        assertSame(WHATEVER, CharMatcher.any().and(WHATEVER));
        assertSame(CharMatcher.any(), CharMatcher.any().or(WHATEVER));
    
        assertSame(CharMatcher.none(), CharMatcher.none().and(WHATEVER));
        assertSame(WHATEVER, CharMatcher.none().or(WHATEVER));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/BenchmarkHelpers.java

        HEX_22(
            CharMatcher.inRange('0', '9')
                .or(CharMatcher.inRange('A', 'F'))
                .or(CharMatcher.inRange('a', 'f')),
            "0123456789ABCDEFabcdef"),
        GERMAN_59(
            CharMatcher.inRange('a', 'z')
                .or(CharMatcher.inRange('A', 'Z'))
                .or(CharMatcher.anyOf("äöüßÄÖÜ")),
            "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZäöüßÄÖÜ");
    
        public final CharMatcher matcher;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/BenchmarkHelpers.java

        HEX_22(
            CharMatcher.inRange('0', '9')
                .or(CharMatcher.inRange('A', 'F'))
                .or(CharMatcher.inRange('a', 'f')),
            "0123456789ABCDEFabcdef"),
        GERMAN_59(
            CharMatcher.inRange('a', 'z')
                .or(CharMatcher.inRange('A', 'Z'))
                .or(CharMatcher.anyOf("äöüßÄÖÜ")),
            "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZäöüßÄÖÜ");
    
        public final CharMatcher matcher;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/CaseFormat.java

      LOWER_CAMEL(CharMatcher.inRange('A', 'Z'), "") {
        @Override
        String normalizeWord(String word) {
          return firstCharOnlyToUpper(word);
        }
    
        @Override
        String normalizeFirstWord(String word) {
          return Ascii.toLowerCase(word);
        }
      },
    
      /** Java and C++ class naming convention, e.g., "UpperCamel". */
      UPPER_CAMEL(CharMatcher.inRange('A', 'Z'), "") {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/CaseFormat.java

      LOWER_CAMEL(CharMatcher.inRange('A', 'Z'), "") {
        @Override
        String normalizeWord(String word) {
          return firstCharOnlyToUpper(word);
        }
    
        @Override
        String normalizeFirstWord(String word) {
          return Ascii.toLowerCase(word);
        }
      },
    
      /** Java and C++ class naming convention, e.g., "UpperCamel". */
      UPPER_CAMEL(CharMatcher.inRange('A', 'Z'), "") {
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 19 20:20:14 UTC 2022
    - 6.3K bytes
    - Viewed (0)
Back to top