Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of about 10,000 for String4 (0.2 sec)

  1. src/go/doc/synopsis.go

    // The result string has no \n, \r, or \t characters and uses only single
    // spaces between words. If text starts with any of the [IllegalPrefixes],
    // the result is the empty string.
    func (p *Package) Synopsis(text string) string {
    	text = firstSentence(text)
    	lower := strings.ToLower(text)
    	for _, prefix := range IllegalPrefixes {
    		if strings.HasPrefix(lower, prefix) {
    			return ""
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. pkg/config/gateway/kube/gatewayapi.go

    // limitations under the License.
    
    package kube
    
    import (
    	"fmt"
    	"strings"
    
    	"istio.io/istio/pkg/config/constants"
    )
    
    // IsInternalGatewayReference returns true if gatewayName is referencing the internal
    // Istio Gateway corresponding to a Kubernetes Gateway API gateway.
    func IsInternalGatewayReference(gatewayName string) bool {
    	parts := strings.SplitN(gatewayName, "/", 2)
    	if len(parts) == 2 {
    		gatewayName = parts[1]
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 05 01:28:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. tensorflow/c/kernels/tensor_shape_utils.cc

        int64_t dim = TF_Dim(tensor, i);
        // A TF_Tensor cannot have an unknown dimension.
        CHECK_GE(dim, 0);
        tensorflow::strings::StrAppend(&s, dim);
      }
      tensorflow::strings::StrAppend(&s, "]");
      return s;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 03 21:44:58 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/BUILD

            "//tensorflow/core:framework",
            "//tensorflow/core/transforms/toposort:Pass",
            "@com_google_absl//absl/container:flat_hash_map",
            "@com_google_absl//absl/log",
            "@com_google_absl//absl/strings",
            "@llvm-project//llvm:Support",
            "@llvm-project//mlir:FuncDialect",
            "@llvm-project//mlir:IR",
            "@llvm-project//mlir:Pass",
            "@llvm-project//mlir:Support",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 17:50:14 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  5. internal/config/config.go

    	}
    	return keys
    }
    
    func (kvs KVS) String() string {
    	var s strings.Builder
    	for _, kv := range kvs {
    		s.WriteString(kv.String())
    		s.WriteString(KvSpaceSeparator)
    	}
    	return s.String()
    }
    
    // Merge environment values with on disk KVS, environment values overrides
    // anything on the disk.
    func Merge(cfgKVS map[string]KVS, envname string, defaultKVS KVS) map[string]KVS {
    	newCfgKVS := make(map[string]KVS)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 37.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/rulegen.go

    // normalizeWhitespace replaces 2+ whitespace sequences with a single space.
    func normalizeWhitespace(x string) string {
    	x = strings.Join(strings.Fields(x), " ")
    	x = strings.Replace(x, "( ", "(", -1)
    	x = strings.Replace(x, " )", ")", -1)
    	x = strings.Replace(x, "[ ", "[", -1)
    	x = strings.Replace(x, " ]", "]", -1)
    	x = strings.Replace(x, ")=>", ") =>", -1)
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/util.go

    limitations under the License.
    */
    
    package cacher
    
    import (
    	"strings"
    )
    
    // hasPathPrefix returns true if the string matches pathPrefix exactly, or if is prefixed with pathPrefix at a path segment boundary
    func hasPathPrefix(s, pathPrefix string) bool {
    	// Short circuit if s doesn't contain the prefix at all
    	if !strings.HasPrefix(s, pathPrefix) {
    		return false
    	}
    
    	pathPrefixLength := len(pathPrefix)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/options/authorizationconfig/metrics/metrics_test.go

    	`
    	metrics := []string{
    		namespace + "_" + subsystem + "_automatic_reloads_total",
    	}
    
    	authorizationConfigAutomaticReloadsTotal.Reset()
    	RegisterMetrics()
    
    	RecordAuthorizationConfigAutomaticReloadFailure(testAPIServerID)
    	if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, strings.NewReader(expectedValue), metrics...); err != nil {
    		t.Fatal(err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 23:09:15 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. test/fixedbugs/issue20682.dir/p.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    import "strings"
    
    type T struct{}
    
    func (T) M() {
    	strings.HasPrefix("", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 15 22:01:35 UTC 2017
    - 250 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/error_test.go

    func declaredErrors(t *testing.T, filename string) map[position]string {
    	f, err := os.Open(filename)
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer f.Close()
    
    	declared := make(map[position]string)
    
    	var s scanner
    	var pattern string
    	s.init(f, func(line, col uint, msg string) {
    		// errors never start with '/' so they are automatically excluded here
    		switch {
    		case strings.HasPrefix(msg, "// ERROR "):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top