Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,274 for matchLen (0.14 sec)

  1. src/compress/flate/deflatefast.go

    	for _, v := range lit {
    		dst = append(dst, literalToken(uint32(v)))
    	}
    	return dst
    }
    
    // matchLen returns the match length between src[s:] and src[t:].
    // t can be negative to indicate the match is starting in e.prev.
    // We assume that src[s-4:s] and src[t-4:t] already match.
    func (e *deflateFast) matchLen(s, t int32, src []byte) int32 {
    	s1 := int(s) + maxMatchLength - 4
    	if s1 > len(src) {
    		s1 = len(src)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 19 18:48:17 UTC 2020
    - 9.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

    }
    
    // Matcher decides if a request is exempted by the NamespaceSelector of a
    // webhook configuration.
    type Matcher struct {
    	NamespaceLister corelisters.NamespaceLister
    	Client          clientset.Interface
    }
    
    func (m *Matcher) GetNamespace(name string) (*v1.Namespace, error) {
    	return m.NamespaceLister.Get(name)
    }
    
    // Validate checks if the Matcher has a NamespaceLister and Client.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jul 15 00:53:08 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/matchconditions/matcher.go

    	return v.Expression
    }
    
    func (v *MatchCondition) ReturnTypes() []*cel.Type {
    	return []*cel.Type{cel.BoolType}
    }
    
    var _ Matcher = &matcher{}
    
    // matcher evaluates compiled cel expressions and determines if they match the given request or not
    type matcher struct {
    	filter      celplugin.Filter
    	failPolicy  v1.FailurePolicyType
    	matcherType string
    	matcherKind string
    	objectName  string
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 24 14:46:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. pkg/test/framework/components/echo/match/matcher.go

    // GetServiceMatches returns the subset of echo.Services that match this Matcher.
    func (m Matcher) GetServiceMatches(services echo.Services) echo.Services {
    	out := make(echo.Services, 0)
    	for _, s := range services {
    		if len(s) > 0 && m(s[0]) {
    			out = append(out, s)
    		}
    	}
    	return out
    }
    
    // First finds the first Instance that matches the Matcher.
    func (m Matcher) First(i echo.Instances) (echo.Instance, error) {
    	for _, i := range i {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 21 20:45:12 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/matcher.go

    		return false
    	}
    	return selector.Matches(labels.Set(accessor.GetLabels()))
    
    }
    
    // MatchObjectSelector decideds whether the request matches the ObjectSelector
    // of the webhook. Only when they match, the webhook is called.
    func (m *Matcher) MatchObjectSelector(p ObjectSelectorProvider, attr admission.Attributes) (bool, *apierrors.StatusError) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 26 00:41:14 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  6. pkg/test/framework/resource/matcher.go

    	"regexp"
    	"strconv"
    	"strings"
    )
    
    // testFilter is a regex matcher on a test. It is split by / following go subtest format
    type testFilter []*regexp.Regexp
    
    type Matcher struct {
    	filters []testFilter
    }
    
    // NewMatcher reimplements the logic of Go's -test.run. The code is mostly directly copied from Go's source.
    func NewMatcher(regexs []string) (*Matcher, error) {
    	filters := []testFilter{}
    	for _, regex := range regexs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 12 23:30:37 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/generic/matcher.go

    Dr. Stefan Schimanski <******@****.***> 1486027168 +0100
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 03 06:33:43 UTC 2017
    - 1.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/authorization/cel/matcher.go

    Rita Zhang <******@****.***> 1709268932 -0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate.go

    		return false, err
    	}
    	matched := s.Label.Matches(labels)
    	if matched && s.Field != nil {
    		matched = matched && s.Field.Matches(fields)
    	}
    	return matched, nil
    }
    
    // MatchesObjectAttributes returns true if the given labels and fields
    // match s.Label and s.Field.
    func (s *SelectionPredicate) MatchesObjectAttributes(l labels.Set, f fields.Set) bool {
    	if s.Label.Empty() && s.Field.Empty() {
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/internal/match.go

    )
    
    // TODO: consider if (some of the) matching algorithm needs to be public after
    // getting some feel about what is generic and what is specific.
    
    // NewInheritanceMatcher returns a matcher that matches based on the inheritance
    // chain.
    //
    // The matcher uses canonicalization and the parent relationship to find a
    // match. The resulting match will always be either Und or a language with the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top