Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,827 for pref (0.04 sec)

  1. src/cmd/go/testdata/mod/golang.org_x_text_v0.3.0.txt

    	Match(...Tag) (Tag, int, int)
    }
    
    type matcher struct {
    	tags []Tag
    }
    
    func (m *matcher) Match(prefs ...Tag) (Tag, int, int) {
    	for _, pref := range prefs {
    		for _, tag := range m.tags {
    			if tag == pref || strings.HasPrefix(string(pref), string(tag+"-")) || strings.HasPrefix(string(tag), string(pref+"-")) {
    				return tag, 0, 0
    			}
    		}
    	}
    	return m.tags[0], 0, 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 10 00:47:13 UTC 2018
    - 1.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/testing/utils.go

    package testing
    
    import (
    	"os"
    	"path"
    )
    
    // PathPrefix returns the prefix set via the ETCD_PREFIX environment variable (if any).
    func PathPrefix() string {
    	pref := os.Getenv("ETCD_PREFIX")
    	if pref == "" {
    		pref = "registry"
    	}
    	return path.Join("/", pref)
    }
    
    // AddPrefix adds the ETCD_PREFIX to the provided key
    func AddPrefix(in string) string {
    	return path.Join(PathPrefix(), in)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 01 13:02:49 UTC 2019
    - 962 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/mod/golang.org_x_text_v0.0.0-20170915032832-14c0d48ead0c.txt

    	Match(...Tag) (Tag, int, int)
    }
    
    type matcher struct {
    	tags []Tag
    }
    
    func (m *matcher) Match(prefs ...Tag) (Tag, int, int) {
    	for _, pref := range prefs {
    		for _, tag := range m.tags {
    			if tag == pref || strings.HasPrefix(string(pref), string(tag+"-")) || strings.HasPrefix(string(tag), string(pref+"-")) {
    				return tag, 0, 0
    			}
    		}
    	}
    	return m.tags[0], 0, 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 10 00:47:13 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/helper/QueryHelper.java

            final String pref = ComponentUtil.getFessConfig().getQueryJsonDefaultPreference();
            if (PREFERENCE_QUERY.equals(pref)) {
                return Integer.toString(query.hashCode());
            }
            if (StringUtil.isNotBlank(pref)) {
                return pref;
            }
            return null;
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  5. test/abi/bad_internal_offsets.go

    package genChecker0
    
    var FailCount int
    
    //go:noinline
    func NoteFailure(fidx int, pkg string, pref string, parmNo int, _ uint64) {
    	FailCount += 1
    	if FailCount > 10 {
    		panic("bad")
    	}
    }
    
    //go:noinline
    func NoteFailureElem(fidx int, pkg string, pref string, parmNo int, elem int, _ uint64) {
    	FailCount += 1
    	if FailCount > 10 {
    		panic("bad")
    	}
    }
    
    type StructF0S0 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. src/net/lookup_windows_test.go

    		}
    		expected, err := nslookupMX(server)
    		if err != nil {
    			t.Skipf("skipping failed nslookup %s test: %s", server, err)
    		}
    		byPrefAndHost := func(a, b *MX) int {
    			if r := cmp.Compare(a.Pref, b.Pref); r != 0 {
    				return r
    			}
    			return strings.Compare(a.Host, b.Host)
    		}
    		slices.SortFunc(expected, byPrefAndHost)
    		slices.SortFunc(mx, byPrefAndHost)
    		if !reflect.DeepEqual(expected, mx) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. test/abi/bad_select_crash.go

    type UtilsType int
    
    //go:noinline
    func NoteFailure(cm int, pidx int, fidx int, pkg string, pref string, parmNo int, isret bool, _ uint64) {
    	if isret {
    		if ParamFailCount != 0 {
    			return
    		}
    		ReturnFailCount++
    	} else {
    		ParamFailCount++
    	}
    	fmt.Fprintf(os.Stderr, "Error: fail %s |%d|%d|%d| =%s.Test%d= %s %d\n", Mode, cm, pidx, fidx, pkg, fidx, pref, parmNo)
    
    	if ParamFailCount+FailCount+ReturnFailCount > 9999 {
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 16 13:38:02 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  8. src/net/dnsclient.go

    type MX struct {
    	Host string
    	Pref uint16
    }
    
    // byPref sorts MX records by preference
    type byPref []*MX
    
    // sort reorders MX records as specified in RFC 5321.
    func (s byPref) sort() {
    	for i := range s {
    		j := randIntn(i + 1)
    		s[i], s[j] = s[j], s[i]
    	}
    	slices.SortFunc(s, func(a, b *MX) int {
    		return cmp.Compare(a.Pref, b.Pref)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/ComponentSelectorSerializerTest.groovy

        }
    
        def "serializes version constraint"() {
            given:
            ModuleComponentSelector selection = DefaultModuleComponentSelector.newSelector(DefaultModuleIdentifier.newId('group-one', 'name-one'), constraint('req', 'pref', 'strict', ['rej']))
    
            when:
            ModuleComponentSelector result = serialize(selection, serializer)
    
            then:
            result.group == 'group-one'
            result.module == 'name-one'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  10. cni/pkg/iptables/iptables_linux.go

    	var rules []*netlink.Rule
    	families := []int{unix.AF_INET}
    	if cfg.EnableIPv6 {
    		families = append(families, unix.AF_INET6)
    	}
    	for _, family := range families {
    		// Equiv:
    		// ip rule add fwmark 0x111/0xfff pref 32764 lookup 100
    		//
    		// Adds in-pod rules for marking packets with the istio-specific TPROXY mark.
    		// A very similar mechanism is used for sidecar TPROXY.
    		//
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top