- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 64 for switches$ (0.91 sec)
-
src/strings/replace.go
// We store single byte as a string, because Count takes a string. toReplace []string } // countCutOff controls the ratio of a string length to a number of replacements // at which (*byteStringReplacer).Replace switches algorithms. // For strings with higher ration of length to replacements than that value, // we call Count, for each replacement from toReplace. // For strings, with a lower ratio we use simple loop, because of Count overhead.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 17:10:31 UTC 2023 - 14.5K bytes - Viewed (0) -
src/encoding/json/scanner.go
} // stateError is the state after reaching a syntax error, // such as after reading `[1}` or `5.1.2`. func stateError(s *scanner, c byte) int { return scanError } // error records an error and switches to the error state. func (s *scanner) error(c byte, context string) int { s.step = stateError s.err = &SyntaxError{"invalid character " + quoteChar(c) + " " + context, s.bytes} return scanError }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 19:04:28 UTC 2023 - 16.1K bytes - Viewed (0) -
src/go/parser/resolver.go
ast.Walk(r, n.Init) } if n.Tag != nil { // The scope below reproduces some unnecessary behavior of the parser, // opening an extra scope in case this is a type switch. It's not needed // for expression switches. // TODO: remove this once we've matched the parser resolution exactly. if n.Init != nil { r.openScope(n.Tag.Pos()) defer r.closeScope() } ast.Walk(r, n.Tag) } if n.Body != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 15.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher.go
utilfeature "k8s.io/apiserver/pkg/util/feature" utilflowcontrol "k8s.io/apiserver/pkg/util/flowcontrol" "k8s.io/klog/v2" ) const ( // We have set a buffer in order to reduce times of context switches. incomingBufSize = 100 outgoingBufSize = 100 ) // defaultWatcherMaxLimit is used to facilitate construction tests var defaultWatcherMaxLimit int64 = maxLimit
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 10:26:38 UTC 2023 - 18.9K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
// given. There is not enough information supplied to do // a full type check, but the type checker is expected to // apply information that can be derived from variable // declarations, function and method returns, and type switches // as far as it can, so that the caller can still tell the types // of expression relevant to a particular fix. // // TODO(rsc,gri): Replace with go/typechecker.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/types_jsonschema.go
// x-kubernetes-preserve-unknown-fields stops the API server // decoding step from pruning fields which are not specified // in the validation schema. This affects fields recursively, // but switches back to normal pruning behaviour if nested // properties or additionalProperties are specified in the schema. // This can either be true or undefined. False is forbidden.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:21 UTC 2023 - 24.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/types_jsonschema.go
// x-kubernetes-preserve-unknown-fields stops the API server // decoding step from pruning fields which are not specified // in the validation schema. This affects fields recursively, // but switches back to normal pruning behaviour if nested // properties or additionalProperties are specified in the schema. // This can either be true or undefined. False is forbidden.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 27 20:06:21 UTC 2023 - 24.7K bytes - Viewed (0) -
src/bufio/bufio.go
return NewReaderSize(rd, defaultBufSize) } // Size returns the size of the underlying buffer in bytes. func (b *Reader) Size() int { return len(b.buf) } // Reset discards any buffered data, resets all state, and switches // the buffered reader to read from r. // Calling Reset on the zero value of [Reader] initializes the internal buffer // to the default size. // Calling b.Reset(b) (that is, resetting a [Reader] to itself) does nothing.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 14:39:08 UTC 2023 - 21.8K bytes - Viewed (0) -
src/go/types/unify.go
// (not recorded with the unifier). // Ensure that if we have at least one type parameter, it is in x // (the earlier swap checks for _recorded_ type parameters only). // This ensures that the switch switches on the type parameter. // // TODO(gri) Factor out type parameter handling from the switch. if isTypeParam(y) { if traceInference { u.tracef("%s ≡ %s\t// swap", y, x) } x, y = y, x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/unify.go
// (not recorded with the unifier). // Ensure that if we have at least one type parameter, it is in x // (the earlier swap checks for _recorded_ type parameters only). // This ensures that the switch switches on the type parameter. // // TODO(gri) Factor out type parameter handling from the switch. if isTypeParam(y) { if traceInference { u.tracef("%s ≡ %s\t// swap", y, x) } x, y = y, x }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 16:24:39 UTC 2024 - 27.8K bytes - Viewed (0)