Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 124 for endIndex (0.22 sec)

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

    internal fun String.indexOfFirstNonAsciiWhitespace(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): Int {
      for (i in startIndex until endIndex) {
        when (this[i]) {
          '\t', '\n', '\u000C', '\r', ' ' -> Unit
          else -> return i
        }
      }
      return endIndex
    }
    
    /**
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval.go

    }
    
    func (wci *watchCacheInterval) fillBuffer() {
    	wci.buffer.startIndex = 0
    	wci.buffer.endIndex = 0
    	for wci.startIndex < wci.endIndex && !wci.buffer.isFull() {
    		event := wci.indexer(wci.startIndex)
    		if event == nil {
    			break
    		}
    		wci.buffer.buffer[wci.buffer.endIndex] = event
    		wci.buffer.endIndex++
    		wci.startIndex++
    	}
    }
    
    const bufferSize = 100
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResponseResource.java

                if (beginIndex > 0) {
                    int endIndex = disposition.indexOf(';', beginIndex + 11); // find the next semicolon
                    endIndex = endIndex < 0 ? disposition.length() : endIndex; // if no semicolon is found, then there is nothing else in the disposition
                    endIndex -= 1; // ignore the closing quotes
                    return disposition.substring(beginIndex + 10, endIndex);
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    }
    
    func TestIntervalBufferIsFull(t *testing.T) {
    	cases := []struct {
    		endIndex int
    		expected bool
    	}{
    		{endIndex: bufferSize - 1, expected: false},
    		{endIndex: bufferSize, expected: true},
    		{endIndex: bufferSize + 1, expected: true},
    	}
    
    	for _, c := range cases {
    		wcib := &watchCacheIntervalBuffer{endIndex: c.endIndex}
    		actual := wcib.isFull()
    		if actual != c.expected {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/CharSequenceExtensions.kt

    }
    
    
    internal
    fun CharSequence.splitIncluding(delimiter: Char) = sequence {
        var startIndex = 0
        while (true) {
            val endIndex = indexOf(delimiter, startIndex) + 1
            if (endIndex == 0) break
            yield(substring(startIndex, endIndex))
            startIndex = endIndex
        }
        if (startIndex <= lastIndex) {
            yield(substring(startIndex))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. src/encoding/pem/pem.go

    			rest = next
    		}
    
    		var endIndex, endTrailerIndex int
    
    		// If there were no headers, the END line might occur
    		// immediately, without a leading newline.
    		if len(p.Headers) == 0 && bytes.HasPrefix(rest, pemEnd[1:]) {
    			endIndex = 0
    			endTrailerIndex = len(pemEnd) - 1
    		} else {
    			endIndex = bytes.Index(rest, pemEnd)
    			endTrailerIndex = endIndex + len(pemEnd)
    		}
    
    		if endIndex < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt

            @Throws(IOException::class)
            private
            fun processClassFile(zipEntry: ZipEntry, builder: Trie.Builder) {
                val endIndex = zipEntry.name.lastIndexOf("/")
                if (endIndex > 0) {
                    val packageName = zipEntry.name.substring(0, endIndex)
                    for (exclude in excludes) {
                        if ("$packageName/".startsWith("$exclude/")) {
                            return
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    	// cache is used a cyclic buffer - the "current" contents of it are
    	// stored in [start_index%capacity, end_index%capacity) - so the
    	// "current" contents have exactly end_index-start_index items.
    	cache      []*watchCacheEvent
    	startIndex int
    	endIndex   int
    	// removedEventSinceRelist holds the information whether any of the events
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomDomParser.java

                if (firstLine != null) {
                    String trimmed = firstLine.trim();
                    if (trimmed.startsWith("<?xml ")) {
                        int endIndex = trimmed.indexOf("?>");
                        String xmlDecl = trimmed.substring(0, endIndex + 2);
                        prefix = (xmlDecl + "\n" + DOCTYPE).getBytes();
                        bytesToSkip = xmlDecl.getBytes().length;
                    }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/LoggingDeprecatedFeatureHandler.java

            final String lineSeparator = SystemProperties.getInstance().getLineSeparator();
    
            int endIndex = Math.min(stack.size(), endIndexExclusive);
            if (isTraceLoggingEnabled()) {
                // append full stack trace
                for (int i = startIndexInclusive; i < endIndex; ++i) {
                    StackTraceElement frame = stack.get(i);
                    appendStackTraceElement(frame, message, lineSeparator);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 12.4K bytes
    - Viewed (0)
Back to top