Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 276 for alice (0.55 sec)

  1. src/cmd/vendor/golang.org/x/text/transform/transform.go

    				break
    			}
    			nDst += copy(dst[nDst:], src[:sz])
    		}
    		nSrc += sz
    	}
    	return
    }
    
    // grow returns a new []byte that is longer than b, and copies the first n bytes
    // of b to the start of the new slice.
    func grow(b []byte, n int) []byte {
    	m := len(b)
    	if m <= 32 {
    		m = 64
    	} else if m <= 256 {
    		m *= 2
    	} else {
    		m += m >> 1
    	}
    	buf := make([]byte, m)
    	copy(buf, b[:n])
    	return buf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/build/relnote/relnote.go

    		panic(fmt.Sprintf("unknown block type %T", b))
    	}
    }
    
    // blocksText returns all the text in a slice of block nodes.
    func blocksText(bs []md.Block) string {
    	var d strings.Builder
    	for _, b := range bs {
    		io.WriteString(&d, text(b))
    		fmt.Fprintln(&d)
    	}
    	return d.String()
    }
    
    // inlineText returns all the next in a slice of inline nodes.
    func inlineText(ins []md.Inline) string {
    	var buf bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tests/hooks_test.go

    	}
    
    	var products []Product
    	DB.Find(&products, "code = ?", "unique_code")
    	if products[0].AfterFindCallTimes != 2 {
    		t.Fatalf("AfterFind callbacks should work with slice, called %v", products[0].AfterFindCallTimes)
    	}
    
    	DB.Where("Code = ?", "unique_code").First(&p)
    	if !reflect.DeepEqual(p.GetCallTimes(), []int64{1, 2, 1, 1, 0, 0, 0, 0, 2}) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Feb 18 01:20:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/mvs/mvs.go

    		m := postorder[i]
    		if max[m.Path] != m.Version {
    			// Older version.
    			continue
    		}
    		if !have[m] {
    			min = append(min, m)
    			walk(m)
    		}
    	}
    	sort.Slice(min, func(i, j int) bool {
    		return min[i].Path < min[j].Path
    	})
    	return min, nil
    }
    
    // UpgradeAll returns a build list for the target module
    // in which every module is upgraded to its latest version.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 21:58:12 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/fmt.go

    	ORSH:              ">>",
    	OSELECT:           "select",
    	OSEND:             "<-",
    	OSUB:              "-",
    	OSWITCH:           "switch",
    	OUNSAFEADD:        "unsafe.Add",
    	OUNSAFESLICE:      "unsafe.Slice",
    	OUNSAFESLICEDATA:  "unsafe.SliceData",
    	OUNSAFESTRING:     "unsafe.String",
    	OUNSAFESTRINGDATA: "unsafe.StringData",
    	OXOR:              "^",
    }
    
    // GoString returns the Go syntax for the Op, or else its name.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/unify.go

    			// assume they are the same to avoid spurious follow-on errors.
    			return (x.len < 0 || y.len < 0 || x.len == y.len) && u.nify(x.elem, y.elem, emode, p)
    		}
    
    	case *Slice:
    		// Two slice types unify if their element types unify.
    		if y, ok := y.(*Slice); ok {
    			return u.nify(x.elem, y.elem, emode, p)
    		}
    
    	case *Struct:
    		// Two struct types unify if they have the same sequence of fields,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  7. callbacks.go

    	c.name = name
    	c.handler = fn
    	c.replace = true
    	c.processor.callbacks = append(c.processor.callbacks, c)
    	return c.processor.compile()
    }
    
    // getRIndex get right index from string slice
    func getRIndex(strs []string, str string) int {
    	for i := len(strs) - 1; i >= 0; i-- {
    		if strs[i] == str {
    			return i
    		}
    	}
    	return -1
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 26 03:33:36 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. src/cmd/go/internal/script/state.go

    	absWork, err := filepath.Abs(workdir)
    	if err != nil {
    		return nil, err
    	}
    
    	ctx, cancel := context.WithCancel(ctx)
    
    	// Make a fresh copy of the env slice to avoid aliasing bugs if we ever
    	// start modifying it in place; this also establishes the invariant that
    	// s.env contains no duplicates.
    	env := cleanEnv(initialEnv, absWork)
    
    	envMap := make(map[string]string, len(env))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:02 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. src/cmd/trace/jsontrace_test.go

    		t.Error("failed to find a network unblock")
    	}
    	if count == 0 {
    		t.Errorf("found zero network block events, want at least one")
    	}
    	// TODO(mknyszek): Check for the flow of this event to some slice event of a goroutine running.
    }
    
    func checkExecutionTimes(t *testing.T, data format.Data) {
    	cpu10 := sumExecutionTime(filterViewerTrace(data, filterGoRoutineName("main.cpu10")))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. src/bytes/bytes_test.go

    		}
    
    		if string(b) != tt.s {
    			t.Errorf("slice changed to %s; want %s", b, tt.s)
    		}
    		if len(tt.a) > 0 {
    			if want := tt.a[len(tt.a)-1] + "z"; string(x) != want {
    				t.Errorf("last appended result was %s; want %s", x, want)
    			}
    		}
    	}
    }
    
    // Test case for any function which accepts and returns a byte slice.
    // For ease of creation, we write the input byte slice as a string.
    type StringTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
Back to top