Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 5,099 for String4 (0.28 sec)

  1. pkg/volume/util/subpath/subpath_windows.go

    func isDeviceOrUncPath(path string) bool {
    	if strings.HasPrefix(path, "Volume") || strings.HasPrefix(path, "\\\\?\\") || strings.HasPrefix(path, "\\\\.\\") || strings.HasPrefix(path, "UNC") {
    		return true
    	}
    	return false
    }
    
    // getUpperPath removes the last level of directory.
    func getUpperPath(path string) string {
    	sep := fmt.Sprintf("%c", filepath.Separator)
    	upperpath := strings.TrimSuffix(path, sep)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  2. src/cmd/link/internal/ld/go.go

    		return
    	}
    	data := string(bdata)
    
    	// process header lines
    	for data != "" {
    		var line string
    		line, data, _ = strings.Cut(data, "\n")
    		if line == "main" {
    			lib.Main = true
    		}
    		if line == "" {
    			break
    		}
    	}
    
    	// look for cgo section
    	p0 := strings.Index(data, "\n$$  // cgo")
    	var p1 int
    	if p0 >= 0 {
    		p0 += p1
    		i := strings.IndexByte(data[p0+1:], '\n')
    		if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. internal/ringbuffer/ring_buffer_test.go

    	}
    	rb.Write([]byte(strings.Repeat("abcd", 15)))
    
    	if !bytes.Equal(rb.Bytes(nil), []byte("bcd"+strings.Repeat("abcd", 15))) {
    		t.Fatalf("expect 63 ... but got %s. r.w=%d, r.r=%d", rb.Bytes(nil), rb.w, rb.r)
    	}
    
    	rb.Reset()
    	n, err = rb.Write([]byte(strings.Repeat("abcd", 16)))
    	if err != nil {
    		t.Fatalf("write failed: %v", err)
    	}
    	if n != 64 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 26.8K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modfetch/proxy.go

    func (p *proxyRepo) Versions(ctx context.Context, prefix string) (*Versions, error) {
    	data, err := p.getBytes(ctx, "@v/list")
    	if err != nil {
    		p.listLatestOnce.Do(func() {
    			p.listLatest, p.listLatestErr = nil, p.versionError("", err)
    		})
    		return nil, p.versionError("", err)
    	}
    	var list []string
    	allLine := strings.Split(string(data), "\n")
    	for _, line := range allLine {
    		f := strings.Fields(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 15:21:05 UTC 2023
    - 13K bytes
    - Viewed (0)
  8. src/internal/trace/generation.go

    // addStrings takes a batch whose first byte is an EvStrings event
    // (indicating that the batch contains only strings) and adds each
    // string contained therein to the provided strings map.
    func addStrings(stringTable *dataTable[stringID, string], b batch) error {
    	if !b.isStringsBatch() {
    		return fmt.Errorf("internal error: addStrings called on non-string batch")
    	}
    	r := bytes.NewReader(b.data)
    	hdr, err := r.ReadByte() // Consume the EvStrings byte.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 22:14:45 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. src/go/parser/parser_test.go

    }
    
    // split splits pre«mid»post into pre, mid, post.
    // If the string does not have that form, split returns x, "", "".
    func split(x string) (pre, mid, post string) {
    	start, end := strings.Index(x, "«"), strings.LastIndex(x, "»")
    	if start < 0 || end < 0 {
    		return x, "", ""
    	}
    	return x[:start], x[start+len("«") : end], x[end+len("»"):]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  10. src/runtime/runtime-gdb_test.go

    	// 2 orders, and possible differences in spacing.
    	sliceMapSfx1 := `map[string][]string = {["e"] = []string = {"f", "g", "h"}, ["a"] = []string = {"b", "c", "d"}}`
    	sliceMapSfx2 := `map[string][]string = {["a"] = []string = {"b", "c", "d"}, ["e"] = []string = {"f", "g", "h"}}`
    	if bl := strings.ReplaceAll(blocks["print slicemap"], "  ", " "); !strings.HasSuffix(bl, sliceMapSfx1) && !strings.HasSuffix(bl, sliceMapSfx2) {
    		t.Fatalf("print slicemap failed: %s", bl)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
Back to top