Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for stringSlice (0.28 sec)

  1. src/sort/sort_slices_benchmark_test.go

    		}
    		ss[i] = sb.String()
    	}
    	return ss
    }
    
    func BenchmarkSortStrings(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ss := makeRandomStrings(N)
    		b.StartTimer()
    		Sort(StringSlice(ss))
    	}
    }
    
    func BenchmarkSlicesSortStrings(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		b.StopTimer()
    		ss := makeRandomStrings(N)
    		b.StartTimer()
    		slices.Sort(ss)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/fields/fields.go

    func (ls Set) String() string {
    	selector := make([]string, 0, len(ls))
    	for key, value := range ls {
    		selector = append(selector, key+"="+value)
    	}
    	// Sort for determinism.
    	sort.StringSlice(selector).Sort()
    	return strings.Join(selector, ",")
    }
    
    // Has returns whether the provided field exists in the map.
    func (ls Set) Has(field string) bool {
    	_, exists := ls[field]
    	return exists
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 19 14:50:16 UTC 2017
    - 1.7K bytes
    - Viewed (0)
  3. pkg/api/v1/service/util.go

    )
    
    const (
    	defaultLoadBalancerSourceRanges = "0.0.0.0/0"
    )
    
    // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0
    func IsAllowAll(ipnets utilnet.IPNetSet) bool {
    	for _, s := range ipnets.StringSlice() {
    		if s == "0.0.0.0/0" {
    			return true
    		}
    	}
    	return false
    }
    
    // GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 30 15:56:47 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  4. pkg/api/service/util.go

    )
    
    const (
    	defaultLoadBalancerSourceRanges = "0.0.0.0/0"
    )
    
    // IsAllowAll checks whether the utilnet.IPNet allows traffic from 0.0.0.0/0
    func IsAllowAll(ipnets utilnet.IPNetSet) bool {
    	for _, s := range ipnets.StringSlice() {
    		if s == "0.0.0.0/0" {
    			return true
    		}
    	}
    	return false
    }
    
    // GetLoadBalancerSourceRanges first try to parse and verify LoadBalancerSourceRanges field from a service.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 30 15:56:47 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  5. hack/verify-flags-underscore.py

                   re.compile('.Int[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.Bool[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.Duration[P]?\("([^"]*)",[^,]+,[^)]+\)'),
                   re.compile('.StringSlice[P]?\("([^"]*)",[^,]+,[^)]+\)') ]
    
        new_excluded_flags = set()
        # walk all the files looking for any flags being declared
        for pathname in files:
            if not pathname.endswith(".go"):
                continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:51 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/labels/labels.go

    func (ls Set) String() string {
    	selector := make([]string, 0, len(ls))
    	for key, value := range ls {
    		selector = append(selector, key+"="+value)
    	}
    	// Sort for determinism.
    	sort.StringSlice(selector).Sort()
    	return strings.Join(selector, ",")
    }
    
    // Has returns whether the provided label exists in the map.
    func (ls Set) Has(label string) bool {
    	_, exists := ls[label]
    	return exists
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  7. pkg/apis/resource/structured/namedresources/validation/validation.go

    		}
    		if attribute.IntSliceValue != nil {
    			entries.Insert("intSlice")
    		}
    		if attribute.StringValue != nil {
    			entries.Insert("string")
    		}
    		if attribute.StringSliceValue != nil {
    			entries.Insert("stringSlice")
    		}
    		if attribute.VersionValue != nil {
    			entries.Insert("version")
    			if !semverRe.MatchString(*attribute.VersionValue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:26:20 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/sort/search.go

    func (p Float64Slice) Search(x float64) int { return SearchFloat64s(p, x) }
    
    // Search returns the result of applying [SearchStrings] to the receiver and x.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. pkg/credentialprovider/keyring.go

    	// first. For example, if for the given image "gcr.io/etcd-development/etcd",
    	// credentials for "quay.io/coreos" should match before "quay.io".
    	sort.Sort(sort.Reverse(sort.StringSlice(dk.index)))
    }
    
    const (
    	defaultRegistryHost = "index.docker.io"
    	defaultRegistryKey  = defaultRegistryHost + "/v1/"
    )
    
    // isDefaultRegistryMatch determines whether the given image will
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 9.2K bytes
    - Viewed (0)
  10. src/internal/filepathlite/path_plan9.go

    		return "", errInvalidPath
    	}
    	return path, nil
    }
    
    // IsAbs reports whether the path is absolute.
    func IsAbs(path string) bool {
    	return stringslite.HasPrefix(path, "/") || stringslite.HasPrefix(path, "#")
    }
    
    // volumeNameLen returns length of the leading volume name on Windows.
    // It returns 0 elsewhere.
    func volumeNameLen(path string) int {
    	return 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 952 bytes
    - Viewed (0)
Back to top