Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for LastIndex (0.04 sec)

  1. cmd/metacache-marker.go

    func (o *listPathOptions) parseMarker() {
    	s := o.Marker
    	if !strings.Contains(s, "[minio_cache:"+markerTagVersion) {
    		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
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. cmd/metrics-v3-handler.go

    	if strings.HasPrefix(pathComponents, "/bucket/") {
    		// bucket specific metrics, extract the bucket name from the path.
    		// it's the last part of the path. e.g. /bucket/api/<bucket-name>
    		bucketIdx := strings.LastIndex(pathComponents, "/")
    		buckets = append(buckets, pathComponents[bucketIdx+1:])
    		// remove bucket from pathComponents as it is dyanamic and
    		// hence not included in the collector path.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  3. src/bytes/bytes.go

    }
    
    func indexBytePortable(s []byte, c byte) int {
    	for i, b := range s {
    		if b == c {
    			return i
    		}
    	}
    	return -1
    }
    
    // LastIndex returns the index of the last instance of sep in s, or -1 if sep is not present in s.
    func LastIndex(s, sep []byte) int {
    	n := len(sep)
    	switch {
    	case n == 0:
    		return len(s)
    	case n == 1:
    		return bytealg.LastIndexByte(s, sep[0])
    	case n == len(s):
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top