- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 289 for original (0.92 sec)
-
src/regexp/all_test.go
re := compileTest(t, test.pat, "") if re == nil { return } m1 := re.MatchString(test.text) m2 := re.Copy().MatchString(test.text) if m1 != m2 { t.Errorf("Copied Regexp match failure on %s: original gave %t; copy gave %t; should be %t", test, m1, m2, len(test.matches) > 0) } } func TestCopyMatch(t *testing.T) { for _, test := range findTests { copyMatchTest(t, &test) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 25.8K bytes - Viewed (0) -
src/go/types/subst.go
// careful not to call any methods that would cause t to be expanded: doing // so would result in deadlock. // // So we call t.Origin().TypeParams() rather than t.TypeParams(). orig := t.Origin() n := orig.TypeParams().Len() if n == 0 { return t // type is not parameterized } if t.TypeArgs().Len() != n { return Typ[Invalid] // error reported elsewhere
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11.1K bytes - Viewed (0) -
src/runtime/asm_386.s
RET nosave: // Now on a scheduling stack (a pthread-created stack). SUBL $32, SP ANDL $~15, SP // alignment, perhaps unnecessary MOVL DX, 4(SP) // save original stack pointer MOVL BX, 0(SP) // first argument in x86-32 ABI CALL AX MOVL 4(SP), CX // restore original stack pointer MOVL CX, SP MOVL AX, ret+8(FP) RET // cgocallback(fn, frame unsafe.Pointer, ctxt uintptr) // See cgocall.go for more details.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 15:45:13 UTC 2024 - 43.1K bytes - Viewed (0) -
src/compress/gzip/gzip_test.go
z := NewWriter(buf) msg := []byte("hello world") z.Write(msg) z.Close() z.Reset(buf2) z.Write(msg) z.Close() if buf.String() != buf2.String() { t.Errorf("buf2 %q != original buf of %q", buf2.String(), buf.String()) } } type limitedWriter struct { N int } func (l *limitedWriter) Write(p []byte) (n int, err error) { if n := l.N; n < len(p) { l.N = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:10:06 UTC 2024 - 6K bytes - Viewed (0) -
src/internal/coverage/cformat/format.go
// source position information (e.g. file and line). Note that we don't // include function name as part of the sorting criteria, the thinking // being that is better to provide things in the original source order. func (p *pstate) sortUnits(units []extcu) { slices.SortFunc(units, func(ui, uj extcu) int { ifile := p.funcs[ui.fnfid].file jfile := p.funcs[uj.fnfid].file
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.7K bytes - Viewed (0) -
src/net/http/httputil/reverseproxy.go
type ReverseProxy struct { // Rewrite must be a function which modifies // the request into a new request to be sent // using Transport. Its response is then copied // back to the original client unmodified. // Rewrite must not access the provided ProxyRequest // or its contents after returning. // // The Forwarded, X-Forwarded, X-Forwarded-Host, // and X-Forwarded-Proto headers are removed from the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 23:37:42 UTC 2024 - 24.9K bytes - Viewed (0) -
src/crypto/aes/gcm_s390x.go
// slice with the contents of the given slice followed by that many bytes and a // second slice that aliases into it and contains only the extra bytes. If the // original slice has sufficient capacity then no allocation is performed. func sliceForAppend(in []byte, n int) (head, tail []byte) { if total := len(in) + n; cap(in) >= total { head = in[:total] } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 18:57:38 UTC 2024 - 11.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
type JSONTree map[string]map[string]interface{} // A TextEdit describes the replacement of a portion of a file. // Start and End are zero-based half-open indices into the original byte // sequence of the file, and New is the new text. type JSONTextEdit struct { Filename string `json:"filename"` Start int `json:"start"` End int `json:"end"` New string `json:"new"`
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
src/os/signal/signal_cgo_test.go
// foreground process group. This process will take over as foreground // from subprocess 2 (step 4 above). // - GO_TEST_TERMINAL_SIGNALS=2: This process create a child process // group of subprocess 1, and is the original foreground process group // for the PTY. This subprocess is the one that is SIGSTOP'd. if runtime.GOOS == "dragonfly" { t.Skip("skipping: wait hangs on dragonfly; see https://go.dev/issue/56132") } scale := 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 10:09:15 UTC 2024 - 10.7K bytes - Viewed (0) -
src/runtime/mgcscavenge.go
} // Now, the top bit of each m-aligned group in x is set // that group was all zero in the original x. // From each group of m bits subtract 1. // Because we know only the top bits of each // m-aligned group are set, we know this will // set each group to have all the bits set except // the top bit, so just OR with the original // result to set all the bits. return ^((x - (x >> (m - 1))) | x) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:48:45 UTC 2024 - 52.3K bytes - Viewed (0)