Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for original (0.1 sec)

  1. src/go/printer/printer_test.go

    		// ...
    		c*t.z
    }
    `
    
    	// parse original
    	f1, err := parser.ParseFile(fset, "src", src, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// pretty-print original
    	var buf bytes.Buffer
    	err = (&Config{Mode: UseSpaces | SourcePos, Tabwidth: 8}).Fprint(&buf, fset, f1)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// parse pretty printed original
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/match.go

    // tie-breaking rules. The first that succeeds defines the result. The rules are
    // applied in the following order.
    //   1) Original language was defined and was identical.
    //   2) Original region was defined and was identical.
    //   3) Distance between two maximized regions was the smallest.
    //   4) Original script was defined and was identical.
    //   5) Distance from want tag to have tag using the parent relation [see Note 5.]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  3. src/cmd/gofmt/gofmt.go

    		fmt.Fprintf(os.Stderr, "gofmt: %s: error restoring file to original: %v; backup in %s\n", filename, err, bakname)
    	}
    
    	n, err := fout.Write(formatted)
    	if err == nil && int64(n) < size {
    		err = fout.Truncate(int64(n))
    	}
    
    	if err != nil {
    		// Rewriting the file failed.
    
    		if n == 0 {
    			// Original file unchanged.
    			os.Remove(bakname)
    			return err
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  4. src/os/readfrom_linux_test.go

    	handled bool
    	err     error
    
    	original func(dst, src *poll.FD, remain int64) (int64, bool, error)
    }
    
    func (h *spliceFileHook) install() {
    	h.original = *PollSpliceFile
    	*PollSpliceFile = func(dst, src *poll.FD, remain int64) (int64, bool, error) {
    		h.called = true
    		h.dstfd = dst.Sysfd
    		h.srcfd = src.Sysfd
    		h.remain = remain
    		h.written, h.handled, h.err = h.original(dst, src, remain)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/strconv/ftoa.go

    	}
    	lower := new(decimal)
    	lower.Assign(mantlo*2 + 1)
    	lower.Shift(explo - int(flt.mantbits) - 1)
    
    	// The upper and lower bounds are possible outputs only if
    	// the original mantissa is even, so that IEEE round-to-even
    	// would round to the original mantissa and not the neighbors.
    	inclusive := mant%2 == 0
    
    	// As we walk the digits we want to know whether rounding up would fall
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. src/slices/slices_test.go

    		t.Errorf("Replace(%v, 1, 3, %v, %v, %v, %v) = %v, want %v", copy, &z, &z, &z, &z, s, want)
    	}
    
    	if !Equal(original, copy) {
    		t.Errorf("original slice has changed, got %v, want %v", original, copy)
    	}
    
    	if !Equal(mem, memcopy) {
    		// Changing the original tail s[len(s):cap(s)] is unwanted
    		t.Errorf("original backing memory has changed, got %v, want %v", mem, memcopy)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:06 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  7. src/regexp/onepass.go

    			return noRune, noNext
    		}
    	}
    	return merged, next
    }
    
    // cleanupOnePass drops working memory, and restores certain shortcut instructions.
    func cleanupOnePass(prog *onePassProg, original *syntax.Prog) {
    	for ix, instOriginal := range original.Inst {
    		switch instOriginal.Op {
    		case syntax.InstAlt, syntax.InstAltMatch, syntax.InstRune:
    		case syntax.InstCapture, syntax.InstEmptyWidth, syntax.InstNop, syntax.InstMatch, syntax.InstFail:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. src/log/slog/doc.go

    means that modifying a simple copy of a Record (e.g. by calling
    [Record.Add] or [Record.AddAttrs] to add attributes)
    may have unexpected effects on the original.
    Before modifying a Record, use [Record.Clone] to
    create a copy that shares no state with the original,
    or create a new Record with [NewRecord]
    and build up its Attrs by traversing the old ones with [Record.Attrs].
    
    # Performance considerations
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 14:35:48 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/net/splice_linux_test.go

    	handled bool
    	err     error
    
    	original func(dst, src *poll.FD, remain int64) (int64, bool, error)
    }
    
    func (h *spliceHook) install() {
    	h.original = pollSplice
    	pollSplice = func(dst, src *poll.FD, remain int64) (int64, bool, error) {
    		h.called = true
    		h.dstfd = dst.Sysfd
    		h.srcfd = src.Sysfd
    		h.remain = remain
    		h.written, h.handled, h.err = h.original(dst, src, remain)
    		return h.written, h.handled, h.err
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_messages_test.go

    				// their original representation, for later use in the handshake
    				// transcript. In order to prevent DeepEqual from failing since
    				// we didn't create the original message via unmarshalling, nil
    				// the field.
    				switch t := m.(type) {
    				case *clientHelloMsg:
    					t.original = nil
    				case *serverHelloMsg:
    					t.original = nil
    				}
    
    				if !reflect.DeepEqual(m1, m) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 15.7K bytes
    - Viewed (0)
Back to top