Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for replaceFrom (0.06 sec)

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

        }
      }
    
      public void testReplaceFrom() {
        assertEquals("yoho", is('a').replaceFrom("yaha", 'o'));
        assertEquals("yh", is('a').replaceFrom("yaha", ""));
        assertEquals("yoho", is('a').replaceFrom("yaha", "o"));
        assertEquals("yoohoo", is('a').replaceFrom("yaha", "oo"));
        assertEquals("12 > 5", is('>').replaceFrom("12 > 5", ">"));
      }
    
      public void testRetainFrom() {
    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 testReplaceFrom() {
        assertEquals("yoho", is('a').replaceFrom("yaha", 'o'));
        assertEquals("yh", is('a').replaceFrom("yaha", ""));
        assertEquals("yoho", is('a').replaceFrom("yaha", "o"));
        assertEquals("yoohoo", is('a').replaceFrom("yaha", "oo"));
        assertEquals("12 > 5", is('>').replaceFrom("12 > 5", ">"));
      }
    
      public void testRetainFrom() {
    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. guava/src/com/google/common/base/CharMatcher.java

       * replaced by a given replacement sequence. For example:
       *
       * <pre>{@code
       * CharMatcher.is('a').replaceFrom("yaha", "oo")
       * }</pre>
       *
       * ... returns {@code "yoohoo"}.
       *
       * <p><b>Note:</b> If the replacement is a fixed string with only one character, you are better
       * off calling {@link #replaceFrom(CharSequence, char)} directly.
       *
       * @param sequence the character sequence to replace matching characters in
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:00:28 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/InternetDomainName.java

      InternetDomainName(String name) {
        // Normalize:
        // * ASCII characters to lowercase
        // * All dot-like characters to '.'
        // * Strip trailing '.'
    
        name = Ascii.toLowerCase(DOTS_MATCHER.replaceFrom(name, '.'));
    
        if (name.endsWith(".")) {
          name = name.substring(0, name.length() - 1);
        }
    
        checkArgument(name.length() <= MAX_LENGTH, "Domain name too long: '%s':", name);
        this.name = name;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/InternetDomainName.java

      InternetDomainName(String name) {
        // Normalize:
        // * ASCII characters to lowercase
        // * All dot-like characters to '.'
        // * Strip trailing '.'
    
        name = Ascii.toLowerCase(DOTS_MATCHER.replaceFrom(name, '.'));
    
        if (name.endsWith(".")) {
          name = name.substring(0, name.length() - 1);
        }
    
        checkArgument(name.length() <= MAX_LENGTH, "Domain name too long: '%s':", name);
        this.name = name;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Feb 05 20:47:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/DefaultConsumerPomArtifactTransformer.java

                request.setArtifacts(replacePom(request.getArtifacts()));
            }
            return request;
        }
    
        public DeployRequest remapDeployArtifacts(RepositorySystemSession session, DeployRequest request) {
            if (Features.consumerPom(session.getUserProperties()) && consumerPomPresent(request.getArtifacts())) {
                request.setArtifacts(replacePom(request.getArtifacts()));
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8K bytes
    - Viewed (0)
Back to top