- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,530 for Pref (0.04 sec)
-
src/cmd/go/testdata/mod/golang.org_x_text_v0.3.0.txt
} 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) -
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) -
src/cmd/go/testdata/mod/golang.org_x_text_v0.0.0-20170915032832-14c0d48ead0c.txt
} 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) -
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) -
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) -
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) -
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) -
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) -
platforms/software/antlr/src/main/java/org/gradle/api/plugins/antlr/internal/antlr2/XRef.java
import java.util.HashMap; import java.util.Iterator; import java.util.LinkedHashMap; /** * Models cross-reference (x-ref) info about {@link GrammarFileMetadata grammar files} such as {@link #filesByPath}, {@link #filesByExportVocab} and {@link #filesByClassName}. */ public class XRef { private final Hierarchy antlrHierarchy;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 14 14:52:10 UTC 2023 - 3.6K bytes - Viewed (0) -
pkg/kubelet/container/ref.go
// start (like the pod infra container). This is not a good way, ugh. fieldPath = ImplicitContainerPrefix + container.Name } ref, err := ref.GetPartialReference(legacyscheme.Scheme, pod, fieldPath) if err != nil { return nil, err } return ref, nil } // fieldPath returns a fieldPath locating container within pod. // Returns an error if the container isn't part of the pod.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 00:55:30 UTC 2022 - 2.7K bytes - Viewed (0)