Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 114 for making (0.41 sec)

  1. src/cmd/go/internal/str/str.go

    	return x
    }
    
    // ToFold returns a string with the property that
    //
    //	strings.EqualFold(s, t) iff ToFold(s) == ToFold(t)
    //
    // This lets us test a large set of strings for fold-equivalent
    // duplicates without making a quadratic number of calls
    // to EqualFold. Note that strings.ToUpper and strings.ToLower
    // do not have the desired property in some corner cases.
    func ToFold(s string) string {
    	// Fast path: all ASCII, no upper case.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/liveness/intervals.go

    //
    //    "abc"   [1,7), [9,10)
    //    "xyz"   [3,8)
    //
    // Clients can construct an Intervals object from a given IR sequence
    // using the "IntervalsBuilder" helper abstraction (one builder per
    // candidate variable), by making a
    // backwards sweep and invoking the Live/Kill methods to note the
    // starts and end of a given lifetime. For the example above, we would
    // expect to see this sequence of calls to Live/Kill:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:27 UTC 2024
    - 10K bytes
    - Viewed (0)
  3. src/compress/bzip2/huffman.go

    			// Use ReadBits to retrieve a single bit
    			// from the underling io.ByteReader.
    			bit = uint16(br.ReadBits(1))
    		}
    
    		// Trick a compiler into generating conditional move instead of branch,
    		// by making both loads unconditional.
    		l, r := node.left, node.right
    
    		if bit == 1 {
    			nodeIndex = l
    		} else {
    			nodeIndex = r
    		}
    
    		if nodeIndex == invalidNodeValue {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:44:37 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/language/match.go

    func PreferSameScript(preferSame bool) MatchOption {
    	return func(m *matcher) { m.preferSameScript = preferSame }
    }
    
    // TODO(v1.0.0): consider making Matcher a concrete type, instead of interface.
    // There doesn't seem to be too much need for multiple types.
    // Making it a concrete type allows MatchStrings to be a method, which will
    // improve its discoverability.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. src/cmd/internal/pgo/serialize_test.go

    	// consume bytes from b to act as our edge data.
    	r := bytes.NewReader(b)
    	consumeString := func() (string, bool) {
    		// First byte: how many bytes to read for this string? We only
    		// use a byte to avoid making humongous strings.
    		length, err := r.ReadByte()
    		if err != nil {
    			return "", false
    		}
    		if length == 0 {
    			return "", false
    		}
    
    		b := make([]byte, length)
    		_, err = r.Read(b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:20:01 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/covdata/tool_test.go

    		re  *regexp.Regexp
    	}{
    		{
    			"args",
    			regexp.MustCompile(`^data file .+ GOOS=.+ GOARCH=.+ program args: .+$`),
    		},
    		{
    			"main package",
    			regexp.MustCompile(`^Package path: ` + mainPkgPath + `\s*$`),
    		},
    		{
    			"main function",
    			regexp.MustCompile(`^Func: main\s*$`),
    		},
    	}
    
    	bad := false
    	for _, testpoint := range testpoints {
    		found := false
    		for _, line := range lines {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. src/cmd/go/internal/test/testflag.go

    			// packageNames non-nil to indicate that the package list is complete.
    			//
    			// (Actually, we only strictly need to assume that if the flag is not of
    			// the form -x=value, but making this more precise would be a breaking
    			// change in the command line API.)
    			if packageNames == nil {
    				packageNames = []string{}
    			}
    
    			if nd.RawArg == "-args" || nd.RawArg == "--args" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/go/internal/workcmd/edit.go

    If no file is specified, Edit looks for a go.work file in the current
    directory and its parent directories
    
    The editing flags specify a sequence of editing operations.
    
    The -fmt flag reformats the go.work file without making other changes.
    This reformatting is also implied by any other modifications that use or
    rewrite the go.mod file. The only time this flag is needed is if no other
    flags are specified, as in 'go work edit -fmt'.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modcmd/edit.go

    it does not look up information about the modules involved.
    By default, edit reads and writes the go.mod file of the main module,
    but a different target file can be specified after the editing flags.
    
    The editing flags specify a sequence of editing operations.
    
    The -fmt flag reformats the go.mod file without making other changes.
    This reformatting is also implied by any other modifications that use or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modcmd/vendor.go

    )
    
    var cmdVendor = &base.Command{
    	UsageLine: "go mod vendor [-e] [-v] [-o outdir]",
    	Short:     "make vendored copy of dependencies",
    	Long: `
    Vendor resets the main module's vendor directory to include all packages
    needed to build and test all the main module's packages.
    It does not include test code for vendored packages.
    
    The -v flag causes vendor to print the names of vendored
    modules and packages to standard error.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 14:19:59 UTC 2024
    - 14.5K bytes
    - Viewed (0)
Back to top