Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for subSequence (0.07 sec)

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

          return 3;
        }
    
        @Override
        public char charAt(int index) {
          return "foo".charAt(index);
        }
    
        @Override
        public CharSequence subSequence(int start, int end) {
          return "foo".subSequence(start, end);
        }
    
        @Override
        public String toString() {
          throw new AssertionFailedError("shouldn't be invoked");
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Sep 17 18:14:12 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Splitter.java

      }
    
      /**
       * Returns a splitter that considers any subsequence matching {@code pattern} to be a separator.
       * For example, {@code Splitter.on(Pattern.compile("\r?\n")).split(entireFile)} splits a string
       * into lines whether it uses DOS-style or UNIX-style line terminators.
       *
       * @param separatorPattern the pattern that determines whether a subsequence is a separator. This
       *     pattern may not match the empty string.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 21:14:05 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

                    public int length() {
                        return name.length();
                    }
    
                    @Override
                    public CharSequence subSequence(final int start, final int end) {
                        return name.subSequence(start, end);
                    }
    
                };
            }
    
            /**
             * @return CharSequence
             */
            public static CharSequence aaa() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 12K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

            final String message = String.format(
                    "The token '%s' at position '%d' refers to a java.util.Map, but the value "
                            + "seems is an instance of '%s'",
                    expression.subSequence(from, to), from, value.getClass());
    
            throw new IntrospectionException(message);
        }
    
        private static Object getIndexedValue(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/hash/Murmur3_32HashFunction.java

                int codePoint = Character.codePointAt(input, i);
                if (codePoint == c) {
                  // fall back to JDK getBytes instead of trying to handle invalid surrogates ourselves
                  putBytes(input.subSequence(i, utf16Length).toString().getBytes(charset));
                  return this;
                }
                i++;
                update(4, codePointToFourUtf8Bytes(codePoint));
              }
            }
            return this;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

                    public int length() {
                        return name.length();
                    }
    
                    @Override
                    public CharSequence subSequence(final int start, final int end) {
                        return name.subSequence(start, end);
                    }
    
                };
            }
    
            /**
             * @return CharSequence
             */
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(Strings.repeat("ZZ", s.length()), matcher.replaceFrom(s, "ZZ"));
        assertEquals("", matcher.trimFrom(s));
        assertEquals(s.length(), matcher.countIn(s));
      }
    
      // Kotlin subSequence()/replace() always return new strings, violating expectations of this test
      @J2ktIncompatible
      public void testGeneral() {
        doTestGeneral(is('a'), 'a', 'b');
        doTestGeneral(isNot('a'), 'b', 'a');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(Strings.repeat("ZZ", s.length()), matcher.replaceFrom(s, "ZZ"));
        assertEquals("", matcher.trimFrom(s));
        assertEquals(s.length(), matcher.countIn(s));
      }
    
      // Kotlin subSequence()/replace() always return new strings, violating expectations of this test
      @J2ktIncompatible
      public void testGeneral() {
        doTestGeneral(is('a'), 'a', 'b');
        doTestGeneral(isNot('a'), 'b', 'a');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 18:32:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/BaseEncoding.java

          char padChar = paddingChar.charValue();
          int l;
          for (l = chars.length() - 1; l >= 0; l--) {
            if (chars.charAt(l) != padChar) {
              break;
            }
          }
          return chars.subSequence(0, l + 1);
        }
    
        @Override
        public boolean canDecode(CharSequence chars) {
          checkNotNull(chars);
          chars = trimTrailingPadding(chars);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
Back to top