Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for DUP (0.05 sec)

  1. src/go/types/exprstring_test.go

    	dup("interface{~int | ~string; float64; m()}"),
    	dup("interface{~T[int, string] | string}"),
    
    	// generic types
    	dup("x[T]"),
    	dup("x[N | A | S]"),
    	dup("x[N, A]"),
    
    	// non-type expressions
    	dup("(x)"),
    	dup("x.f"),
    	dup("a[i]"),
    
    	dup("s[:]"),
    	dup("s[i:]"),
    	dup("s[:j]"),
    	dup("s[i:j]"),
    	dup("s[:j:k]"),
    	dup("s[i:j:k]"),
    
    	dup("x.(T)"),
    
    	dup("x.([10]int)"),
    	dup("x.([...]int)"),
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 17:08:18 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/go/types/typestring_test.go

    	dup("func(x ...int) (u string)"),
    	{"func(x int, y ...int) (u string)", "func(x int, y ...int) (u string)"},
    
    	// interfaces
    	dup("interface{}"),
    	dup("interface{m()}"),
    	dup(`interface{String() string; m(int) float32}`),
    	dup("interface{int | float32 | complex128}"),
    	dup("interface{int | ~float32 | ~complex128}"),
    	dup("any"),
    	dup("interface{comparable}"),
    	// TODO(gri) adjust test for EvalCompositeTest
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/printer_test.go

    	// non-type expressions
    	dup("(x)"),
    	dup("x.f"),
    	dup("a[i]"),
    
    	dup("s[:]"),
    	dup("s[i:]"),
    	dup("s[:j]"),
    	dup("s[i:j]"),
    	dup("s[:j:k]"),
    	dup("s[i:j:k]"),
    
    	dup("x.(T)"),
    
    	dup("x.([10]int)"),
    	dup("x.([...]int)"),
    
    	dup("x.(struct{})"),
    	dup("x.(struct{x int; y, z float32; E})"),
    
    	dup("x.(func())"),
    	dup("x.(func(x int))"),
    	dup("x.(func() int)"),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 17:08:18 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/typestring_test.go

    	dup("func(x ...int) (u string)"),
    	{"func(x int, y ...int) (u string)", "func(x int, y ...int) (u string)"},
    
    	// interfaces
    	dup("interface{}"),
    	dup("interface{m()}"),
    	dup(`interface{String() string; m(int) float32}`),
    	dup("interface{int | float32 | complex128}"),
    	dup("interface{int | ~float32 | ~complex128}"),
    	dup("any"),
    	dup("interface{comparable}"),
    	{"comparable", "interface{comparable}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testplugin/testdata/host/host.go

    	if got, want := common.X, 2; got != want {
    		log.Fatalf("after loading plugin2, common.X=%d, want %d", got, want)
    	}
    
    	_, err = plugin.Open("plugin2-dup.so")
    	if err == nil {
    		log.Fatal(`plugin.Open("plugin2-dup.so"): duplicate open should have failed`)
    	}
    	if s := err.Error(); !strings.Contains(s, "already loaded") {
    		log.Fatal(`plugin.Open("plugin2.so"): error does not mention "already loaded"`)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  6. src/crypto/md5/gen.go

    	Shift4     []int
    	Table1     []uint32
    	Table2     []uint32
    	Table3     []uint32
    	Table4     []uint32
    }
    
    var funcs = template.FuncMap{
    	"dup":     dup,
    	"relabel": relabel,
    	"rotate":  rotate,
    	"idx":     idx,
    	"seq":     seq,
    }
    
    func dup(count int, x []int) []int {
    	var out []int
    	for i := 0; i < count; i++ {
    		out = append(out, x...)
    	}
    	return out
    }
    
    func relabel(s string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. src/internal/poll/fd_unixjs.go

    	return CloseFunc(fd)
    }
    
    // dupCloseOnExecOld is the traditional way to dup an fd and
    // set its O_CLOEXEC bit, using two system calls.
    func dupCloseOnExecOld(fd int) (int, string, error) {
    	syscall.ForkLock.RLock()
    	defer syscall.ForkLock.RUnlock()
    	newfd, err := syscall.Dup(fd)
    	if err != nil {
    		return -1, "dup", err
    	}
    	syscall.CloseOnExec(newfd)
    	return newfd, "", nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:41 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/KuromojiTokenizerFactory.java

            nBestCost = settings.getAsInt(NBEST_COST, -1);
            nBestExamples = settings.get(NBEST_EXAMPLES);
        }
    
        private static String parse(String rule, Set<String> dup) {
            String[] values = CSVUtil.parse(rule);
            if (dup.add(values[0]) == false) {
                throw new IllegalArgumentException("Found duplicate term [" + values[0] + "] in user dictionary.");
            }
            return rule;
        }
    
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. src/expvar/expvar.go

    	if _, ok := v.m.Load(key); !ok {
    		if _, dup := v.m.LoadOrStore(key, av); !dup {
    			v.addKey(key)
    			return
    		}
    	}
    
    	v.m.Store(key, av)
    }
    
    // Add adds delta to the *[Int] value stored under the given map key.
    func (v *Map) Add(key string, delta int64) {
    	i, ok := v.m.Load(key)
    	if !ok {
    		var dup bool
    		i, dup = v.m.LoadOrStore(key, new(Int))
    		if !dup {
    			v.addKey(key)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/archive/zip/register.go

    	if _, dup := decompressors.LoadOrStore(method, dcomp); dup {
    		panic("decompressor already registered")
    	}
    }
    
    // RegisterCompressor registers custom compressors for a specified method ID.
    // The common methods [Store] and [Deflate] are built in.
    func RegisterCompressor(method uint16, comp Compressor) {
    	if _, dup := compressors.LoadOrStore(method, comp); dup {
    		panic("compressor already registered")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
Back to top