Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for CharSequence (0.45 sec)

  1. guava/src/com/google/common/io/CharSource.java

       * the {@code charSequence} is mutated while it is being read, so don't do that.
       *
       * @since 15.0 (since 14.0 as {@code CharStreams.asCharSource(String)})
       */
      public static CharSource wrap(CharSequence charSequence) {
        return charSequence instanceof String
            ? new StringCharSource((String) charSequence)
            : new CharSequenceCharSource(charSequence);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Predicates.java

       * @since 3.0
       */
      @GwtIncompatible // Only used by other GWT-incompatible code.
      public static Predicate<CharSequence> containsPattern(String pattern) {
        return new ContainsPatternFromStringPredicate(pattern);
      }
    
      /**
       * Returns a predicate that evaluates to {@code true} if the {@code CharSequence} being tested
       * contains any match for the given regular expression pattern. The test used is equivalent to
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/BaseEncoding.java

      abstract int maxDecodedSize(int chars);
    
      abstract int decodeTo(byte[] target, CharSequence chars) throws DecodingException;
    
      CharSequence trimTrailingPadding(CharSequence chars) {
        return checkNotNull(chars);
      }
    
      // Modified encoding generators
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 15 16:33:32 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/JoinerTest.java

      private static final Appendable NASTY_APPENDABLE =
          new Appendable() {
            @Override
            public Appendable append(@Nullable CharSequence csq) throws IOException {
              throw new IOException();
            }
    
            @Override
            public Appendable append(@Nullable CharSequence csq, int start, int end)
                throws IOException {
              throw new IOException();
            }
    
            @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

        k1 = mixK1(high);
        h1 = mixH1(h1, k1);
    
        return fmix(h1, Longs.BYTES);
      }
    
      @Override
      public HashCode hashUnencodedChars(CharSequence input) {
        int h1 = seed;
    
        // step through the CharSequence 2 chars at a time
        for (int i = 1; i < input.length(); i += 2) {
          int k1 = input.charAt(i - 1) | (input.charAt(i) << 16);
          k1 = mixK1(k1);
          h1 = mixH1(h1, k1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 11.9K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/Joiner.java

         * tolerance is implemented differently: Its implementation avoids calling this toString(Object)
         * method in the first place.)
         */
        requireNonNull(part);
        return (part instanceof CharSequence) ? (CharSequence) part : part.toString();
      }
    
      private static Iterable<@Nullable Object> iterable(
          @CheckForNull Object first, @CheckForNull Object second, @Nullable Object[] rest) {
        checkNotNull(rest);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Dec 15 19:31:54 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Strings.java

       * {@code b} have no common prefix, returns the empty string.
       *
       * @since 11.0
       */
      public static String commonPrefix(CharSequence a, CharSequence b) {
        checkNotNull(a);
        checkNotNull(b);
    
        int maxPrefixLength = Math.min(a.length(), b.length());
        int p = 0;
        while (p < maxPrefixLength && a.charAt(p) == b.charAt(p)) {
          p++;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 09 00:49:18 UTC 2021
    - 12.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/CharStreams.java

          checkPositionIndexes(off, off + len, str.length());
        }
    
        @Override
        public Writer append(@CheckForNull CharSequence csq) {
          return this;
        }
    
        @Override
        public Writer append(@CheckForNull CharSequence csq, int start, int end) {
          checkPositionIndexes(start, end, csq == null ? "null".length() : csq.length());
          return this;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

        public <T> Iterable<? super String> wildcardsMatchByLowerBound(
            List<? super CharSequence> list) {
          return isSubtype(list);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public <T> Iterable<? super CharSequence> wildCardsDoNotMatchByLowerBound(
            List<? super String> list) {
          return notSubtype(list);
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/PredicatesTest.java

      public void testContainsPattern_apply() {
        Predicate<CharSequence> isFoobar = Predicates.containsPattern("^Fo.*o.*bar$");
        assertTrue(isFoobar.apply("Foxyzoabcbar"));
        assertFalse(isFoobar.apply("Foobarx"));
      }
    
      @GwtIncompatible // Predicates.containsPattern
      public void testContains_apply() {
        Predicate<CharSequence> isFoobar = Predicates.contains(Pattern.compile("^Fo.*o.*bar$"));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
Back to top