Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for splitSeq (0.05 sec)

  1. src/bytes/iter.go

    			} else {
    				line, s = s, nil
    			}
    			if !yield(line[:len(line):len(line)]) {
    				return
    			}
    		}
    	}
    }
    
    // splitSeq is SplitSeq or SplitAfterSeq, configured by how many
    // bytes of sep to include in the results (none or all).
    func splitSeq(s, sep []byte, sepSave int) iter.Seq[[]byte] {
    	return func(yield func([]byte) bool) {
    		if len(sep) == 0 {
    			for len(s) > 0 {
    				_, size := utf8.DecodeRune(s)
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/bytes/iter_test.go

    	for range b.N {
    		for range SplitSeq(benchInputHard, nil) {
    		}
    	}
    }
    
    func BenchmarkSplitSeqSingleByteSeparator(b *testing.B) {
    	sep := []byte("/")
    	for range b.N {
    		for range SplitSeq(benchInputHard, sep) {
    		}
    	}
    }
    
    func BenchmarkSplitSeqMultiByteSeparator(b *testing.B) {
    	sep := []byte("hello")
    	for range b.N {
    		for range SplitSeq(benchInputHard, sep) {
    		}
    	}
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue May 06 02:08:23 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  3. cmd/metacache-marker.go

    		return
    	}
    	start := strings.LastIndex(s, "[")
    	o.Marker = s[:start]
    	end := strings.LastIndex(s, "]")
    	tag := strings.Trim(s[start:end], "[]")
    	tags := strings.SplitSeq(tag, ",")
    	for tag := range tags {
    		kv := strings.Split(tag, ":")
    		if len(kv) < 2 {
    			continue
    		}
    		switch kv[0] {
    		case "minio_cache":
    			if kv[1] != markerTagVersion {
    				continue
    			}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  4. api/go1.24.txt

    pkg bytes, func FieldsSeq([]uint8) iter.Seq[[]uint8] #61901
    pkg bytes, func Lines([]uint8) iter.Seq[[]uint8] #61901
    pkg bytes, func SplitAfterSeq([]uint8, []uint8) iter.Seq[[]uint8] #61901
    pkg bytes, func SplitSeq([]uint8, []uint8) iter.Seq[[]uint8] #61901
    pkg crypto/cipher, func NewCFBDecrypter //deprecated #69445
    pkg crypto/cipher, func NewCFBEncrypter //deprecated #69445
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Dec 17 21:28:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  5. cmd/leak-detect_test.go

    	// get runtime stack buffer.
    	buf := debug.Stack()
    	// runtime stack of go routines will be listed with 2 blank spaces between each of them, so split on "\n\n" .
    	for g := range strings.SplitSeq(string(buf), "\n\n") {
    		// Again split on a new line, the first line of the second half contains the info about the go routine.
    		sl := strings.SplitN(g, "\n", 2)
    		if len(sl) != 2 {
    			continue
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. cmd/signature-v2.go

    // Escape encodedQuery string into unescaped list of query params, returns error
    // if any while unescaping the values.
    func unescapeQueries(encodedQuery string) (unescapedQueries []string, err error) {
    	for query := range strings.SplitSeq(encodedQuery, "&") {
    		var unescapedQuery string
    		unescapedQuery, err = url.QueryUnescape(query)
    		if err != nil {
    			return nil, err
    		}
    		unescapedQueries = append(unescapedQueries, unescapedQuery)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. cmd/handler-utils.go

    func trimAwsChunkedContentEncoding(contentEnc string) (trimmedContentEnc string) {
    	if contentEnc == "" {
    		return contentEnc
    	}
    	var newEncs []string
    	for enc := range strings.SplitSeq(contentEnc, ",") {
    		if enc != streamingContentEncoding {
    			newEncs = append(newEncs, enc)
    		}
    	}
    	return strings.Join(newEncs, ",")
    }
    
    func collectInternodeStats(f http.HandlerFunc) http.HandlerFunc {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.3K bytes
    - Viewed (1)
  8. src/bytes/example_test.go

    		fmt.Printf("%q\n", line)
    	}
    
    	// Output:
    	// "Hello\n"
    	// "World\n"
    	// "Go Programming\n"
    }
    
    func ExampleSplitSeq() {
    	s := []byte("a,b,c,d")
    	for part := range bytes.SplitSeq(s, []byte(",")) {
    		fmt.Printf("%q\n", part)
    	}
    
    	// Output:
    	// "a"
    	// "b"
    	// "c"
    	// "d"
    }
    
    func ExampleSplitAfterSeq() {
    	s := []byte("a,b,c,d")
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 12 16:07:54 UTC 2025
    - 16.5K bytes
    - Viewed (0)
  9. cmd/object-api-options.go

    }
    
    func parseObjectAttributes(h http.Header) (attributes map[string]struct{}) {
    	attributes = make(map[string]struct{})
    	for _, headerVal := range h.Values(xhttp.AmzObjectAttributes) {
    		for v := range strings.SplitSeq(strings.TrimSpace(headerVal), ",") {
    			if v != "" {
    				attributes[v] = struct{}{}
    			}
    		}
    	}
    
    	return
    }
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sat Sep 06 17:34:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. cmd/common-main.go

    		}
    		globalRootDiskThreshold = size
    	}
    
    	domains := env.Get(config.EnvDomain, "")
    	if len(domains) != 0 {
    		for domainName := range strings.SplitSeq(domains, config.ValueSeparator) {
    			if _, ok := dns2.IsDomainName(domainName); !ok {
    				logger.Fatal(config.ErrInvalidDomainValue(nil).Msgf("Unknown value `%s`", domainName),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top