Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,339 for indexIn (0.22 sec)

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

            }
          }
        }
    
        @Override
        public boolean matches(char c) {
          int index = Arrays.binarySearch(rangeStarts, c);
          if (index >= 0) {
            return true;
          } else {
            index = ~index - 1;
            return index >= 0 && c <= rangeEnds[index];
          }
        }
    
        @Override
        public String toString() {
          return description;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(-1, matcher.indexIn(s));
        assertEquals(-1, matcher.indexIn(s, 0));
        assertEquals(-1, matcher.indexIn(s, 1));
        assertEquals(-1, matcher.indexIn(s, s.length()));
        try {
          matcher.indexIn(s, s.length() + 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          matcher.indexIn(s, -1);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/base/CharMatcherTest.java

        assertEquals(-1, matcher.indexIn(s));
        assertEquals(-1, matcher.indexIn(s, 0));
        assertEquals(-1, matcher.indexIn(s, 1));
        assertEquals(-1, matcher.indexIn(s, s.length()));
        try {
          matcher.indexIn(s, s.length() + 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
        try {
          matcher.indexIn(s, -1);
          fail();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/CharMatcher.java

            }
          }
        }
    
        @Override
        public boolean matches(char c) {
          int index = Arrays.binarySearch(rangeStarts, c);
          if (index >= 0) {
            return true;
          } else {
            index = ~index - 1;
            return index >= 0 && c <= rangeEnds[index];
          }
        }
    
        @Override
        public String toString() {
          return description;
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/CaseFormat.java

      String convert(CaseFormat format, String s) {
        // deal with camel conversion
        StringBuilder out = null;
        int i = 0;
        int j = -1;
        while ((j = wordBoundary.indexIn(s, ++j)) != -1) {
          if (i == 0) {
            // include some extra space for separators
            out = new StringBuilder(s.length() + 4 * format.wordSeparator.length());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CaseFormat.java

      String convert(CaseFormat format, String s) {
        // deal with camel conversion
        StringBuilder out = null;
        int i = 0;
        int j = -1;
        while ((j = wordBoundary.indexIn(s, ++j)) != -1) {
          if (i == 0) {
            // include some extra space for separators
            out = new StringBuilder(s.length() + 4 * format.wordSeparator.length());
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Splitter.java

        final CharMatcher trimmer;
        final boolean omitEmptyStrings;
    
        /**
         * Returns the first index in {@code toSplit} at or after {@code start} that contains the
         * separator.
         */
        abstract int separatorStart(int start);
    
        /**
         * Returns the first index in {@code toSplit} after {@code separatorPosition} that does not
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 24.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Splitter.java

        final CharMatcher trimmer;
        final boolean omitEmptyStrings;
    
        /**
         * Returns the first index in {@code toSplit} at or after {@code start} that contains the
         * separator.
         */
        abstract int separatorStart(int start);
    
        /**
         * Returns the first index in {@code toSplit} after {@code separatorPosition} that does not
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/MediaType.java

        }
    
        @CanIgnoreReturnValue
        String consumeTokenIfPresent(CharMatcher matcher) {
          checkState(hasMore());
          int startPosition = position;
          position = matcher.negate().indexIn(input, startPosition);
          return hasMore() ? input.substring(startPosition, position) : input.substring(startPosition);
        }
    
        String consumeToken(CharMatcher matcher) {
          int startPosition = position;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Aug 07 16:17:10 GMT 2023
    - 46.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/QuantilesTest.java

        for (int index = 0; index <= 100; index++) {
          indexes.add(index);
          expectedBuilder.put(index, expectedLargeDatasetPercentile(index));
        }
        Random random = new Random(770683168895677741L);
        Collections.shuffle(indexes, random);
        assertThat(percentiles().indexes(Ints.toArray(indexes)).computeInPlace(dataset))
            .comparingValuesUsing(QUANTILE_CORRESPONDENCE)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.7K bytes
    - Viewed (0)
Back to top