Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for echarts (0.16 sec)

  1. src/bytes/bytes_test.go

    		}
    	})
    	if allocs != 0 {
    		t.Errorf("expected no allocations, got %f", allocs)
    	}
    }
    
    func runIndexAnyTests(t *testing.T, f func(s []byte, chars string) int, funcName string, testCases []BinOpTest) {
    	for _, test := range testCases {
    		a := []byte(test.a)
    		actual := f(a, test.b)
    		if actual != test.i {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. src/bytes/bytes.go

    // code points in chars. It returns -1 if chars is empty or if there is no code
    // point in common.
    func IndexAny(s []byte, chars string) int {
    	if chars == "" {
    		// Avoid scanning all of s.
    		return -1
    	}
    	if len(s) == 1 {
    		r := rune(s[0])
    		if r >= utf8.RuneSelf {
    			// search utf8.RuneError.
    			for _, r = range chars {
    				if r == utf8.RuneError {
    					return 0
    				}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top