Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 216 for original (0.09 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. src/slices/slices.go

    	return s
    }
    
    // DeleteFunc removes any elements from s for which del returns true,
    // returning the modified slice.
    // DeleteFunc zeroes the elements between the new length and the original length.
    func DeleteFunc[S ~[]E, E any](s S, del func(E) bool) S {
    	i := IndexFunc(s, del)
    	if i == -1 {
    		return s
    	}
    	// Don't start copying elements until we find one to delete.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  7. 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)
  8. src/image/image.go

    	s[0] = c.R
    	s[1] = c.G
    	s[2] = c.B
    	s[3] = c.A
    }
    
    // SubImage returns an image representing the portion of the image p visible
    // through r. The returned value shares pixels with the original image.
    func (p *RGBA) SubImage(r Rectangle) Image {
    	r = r.Intersect(p.Rect)
    	// If r1 and r2 are Rectangles, r1.Intersect(r2) is not guaranteed to be inside
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 34.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top