Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for startIndex (0.11 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

     */
    internal fun String.indexOfLastNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in endIndex - 1 downTo startIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i + 1
        }
      }
      return startIndex
    }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        }
        elementsToInsert = Helpers.cycle(elementsToInsertIterable);
        this.features = copyToSet(features);
        this.expectedElements = copyToList(expectedElements);
        this.knownOrder = knownOrder;
        this.startIndex = startIndex;
      }
    
      /**
       * I'd like to make this a parameter to the constructor, but I can't because the stimulus
       * instances refer to {@code this}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

                      : Lists.reverse(distinctCandidatesByAscendingSize));
          for (int startIndex = 0;
              startIndex < distinctCandidatesByAscendingSize.size();
              startIndex++) {
            Iterable<ImmutableSet<String>> infiniteSetsFromStartIndex =
                Iterables.skip(infiniteSets, startIndex);
            for (boolean inputIsSet : new boolean[] {true, false}) {
              Collection<String> input =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                        list.add(parseItem(isCombination, true, version.substring(startIndex, i)));
                        startIndex = i;
    
                        list.add(list = new ListItem());
                        stack.push(list);
                        isCombination = false;
                    }
    
                    isDigit = false;
                }
            }
    
            if (version.length() > startIndex) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 26K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java

        List<Integer> addItems = ImmutableList.of(99, 88, 77);
    
        for (final int startIndex : new int[] {0, 3, 5}) {
          new ListIteratorTester<Integer>(
              3,
              addItems,
              ImmutableList.of(SUPPORTS_REMOVE, SUPPORTS_SET),
              Lists.newArrayList(2, 3, 4, 5, 6),
              startIndex) {
            private @Nullable LinkedListMultimap<String, Integer> multimap;
    
            @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

       * end).trimmed()}.
       */
      public ImmutableLongArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
            : new ImmutableLongArray(array, start + startIndex, start + endIndex);
      }
    
      @SuppressWarnings("Java7ApiChecker")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/ImmutableIntArray.java

       * end).trimmed()}.
       */
      public ImmutableIntArray subArray(int startIndex, int endIndex) {
        Preconditions.checkPositionIndexes(startIndex, endIndex, length());
        return startIndex == endIndex
            ? EMPTY
            : new ImmutableIntArray(array, start + startIndex, start + endIndex);
      }
    
      /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

      )
    }
    
    /**
     * Returns the next index in this at or after [startIndex] that is a character from
     * [characters]. Returns the input length if none of the requested characters can be found.
     */
    private fun String.indexOfElement(
      characters: String,
      startIndex: Int = 0,
    ): Int {
      for (i in startIndex until length) {
        if (this[i] in characters) {
          return i
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/ListIteratorTester.java

          int steps,
          Iterable<E> elementsToInsert,
          Iterable<? extends IteratorFeature> features,
          Iterable<E> expectedElements,
          int startIndex) {
        super(steps, elementsToInsert, features, expectedElements, KnownOrder.KNOWN_ORDER, startIndex);
      }
    
      @Override
      protected final Iterable<? extends Stimulus<E, ? super ListIterator<E>>> getStimulusValues() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        } else if (b != 0) {
          // Group separator ":" delimiter.
          if (input.startsWith(":", startIndex = i)) {
            i++
          } else if (input.startsWith(".", startIndex = i)) {
            // If we see a '.', rewind to the beginning of the previous group and parse as IPv4.
            if (!decodeIpv4Suffix(input, groupOffset, limit, address, b - 2)) return null
            b += 2 // We rewound two bytes and then added four.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top