Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for retainFrom (0.16 sec)

  1. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

      }
    
      public void testRetainFrom() {
        assertEquals("aaa", is('a').retainFrom("bazaar"));
        assertEquals("z", is('z').retainFrom("bazaar"));
        assertEquals("!", is('!').retainFrom("!@#$%^&*()-="));
        assertEquals("", is('x').retainFrom("bazaar"));
        assertEquals("", is('a').retainFrom(""));
      }
    
      public void testPrecomputedOptimizations() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/CharMatcherTest.java

      }
    
      public void testRetainFrom() {
        assertEquals("aaa", is('a').retainFrom("bazaar"));
        assertEquals("z", is('z').retainFrom("bazaar"));
        assertEquals("!", is('!').retainFrom("!@#$%^&*()-="));
        assertEquals("", is('x').retainFrom("bazaar"));
        assertEquals("", is('a').retainFrom(""));
      }
    
      public void testPrecomputedOptimizations() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/net/InternetDomainName.java

         *
         * <p>ASCII characters in the part are expected to be valid per RFC 1035, with underscore also
         * being allowed due to widespread practice.
         */
    
        String asciiChars = CharMatcher.ascii().retainFrom(part);
    
        if (!PART_CHAR_MATCHER.matchesAllOf(asciiChars)) {
          return false;
        }
    
        // No initial or final dashes or underscores.
    
        if (DASH_MATCHER.matches(part.charAt(0))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/CharMatcher.java

       * Returns a string containing all matching BMP characters of a character sequence, in order. For
       * example:
       *
       * <pre>{@code
       * CharMatcher.is('a').retainFrom("bazaar")
       * }</pre>
       *
       * ... returns {@code "aaa"}.
       */
      public String retainFrom(CharSequence sequence) {
        return negate().removeFrom(sequence);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/InternetDomainName.java

         *
         * <p>ASCII characters in the part are expected to be valid per RFC 1035, with underscore also
         * being allowed due to widespread practice.
         */
    
        String asciiChars = CharMatcher.ascii().retainFrom(part);
    
        if (!PART_CHAR_MATCHER.matchesAllOf(asciiChars)) {
          return false;
        }
    
        // No initial or final dashes or underscores.
    
        if (DASH_MATCHER.matches(part.charAt(0))
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
Back to top