Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for maxRune (0.15 sec)

  1. src/fmt/fmt_test.go

    		t.Error("fail with value")
    	}
    }
    
    func TestIsSpace(t *testing.T) {
    	// This tests the internal isSpace function.
    	// IsSpace = isSpace is defined in export_test.go.
    	for i := rune(0); i <= unicode.MaxRune; i++ {
    		if IsSpace(i) != unicode.IsSpace(i) {
    			t.Errorf("isSpace(%U) = %v, want %v", i, IsSpace(i), unicode.IsSpace(i))
    		}
    	}
    }
    
    func hideFromVet(s string) string { return s }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/numberlines.go

    		}
    		sort.Sort(entries)
    		total := uint64(0)            // sum over files of maxline(file) - minline(file)
    		maxfile := int32(0)           // max(file indices)
    		minline := uint32(0xffffffff) // min over files of minline(file)
    		maxline := uint32(0)          // max over files of maxline(file)
    		for _, v := range entries {
    			if f.pass.stats > 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 14 21:26:13 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  3. src/slices/sort_test.go

    			}
    
    			gotMax := Max(tt.data)
    			if gotMax != tt.wantMax {
    				t.Errorf("Max got %v, want %v", gotMax, tt.wantMax)
    			}
    
    			gotMaxFunc := MaxFunc(tt.data, intCmp)
    			if gotMaxFunc != tt.wantMax {
    				t.Errorf("MaxFunc got %v, want %v", gotMaxFunc, tt.wantMax)
    			}
    		})
    	}
    
    	svals := []S{
    		{1, "a"},
    		{2, "a"},
    		{1, "b"},
    		{2, "b"},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. src/slices/sort.go

    		m = max(m, x[i])
    	}
    	return m
    }
    
    // MaxFunc returns the maximal value in x, using cmp to compare elements.
    // It panics if x is empty. If there is more than one maximal element
    // according to the cmp function, MaxFunc returns the first one.
    func MaxFunc[S ~[]E, E any](x S, cmp func(a, b E) int) E {
    	if len(x) < 1 {
    		panic("slices.MaxFunc: empty list")
    	}
    	m := x[0]
    	for i := 1; i < len(x); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:54:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/term/terminal.go

    	// cursorX contains the current X value of the cursor where the left
    	// edge is 0. cursorY contains the row number where the first row of
    	// the current line is 0.
    	cursorX, cursorY int
    	// maxLine is the greatest value of cursorY so far.
    	maxLine int
    
    	termWidth, termHeight int
    
    	// outBuf contains the terminal data to be sent.
    	outBuf []byte
    	// remainder contains the remainder of any partial key sequences after
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Manichaean", Var, 4},
    		{"Marchen", Var, 7},
    		{"Mark", Var, 0},
    		{"Masaram_Gondi", Var, 10},
    		{"MaxASCII", Const, 0},
    		{"MaxCase", Const, 0},
    		{"MaxLatin1", Const, 0},
    		{"MaxRune", Const, 0},
    		{"Mc", Var, 0},
    		{"Me", Var, 0},
    		{"Medefaidrin", Var, 13},
    		{"Meetei_Mayek", Var, 0},
    		{"Mende_Kikakui", Var, 4},
    		{"Meroitic_Cursive", Var, 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  7. src/slices/example_test.go

    func ExampleMaxFunc() {
    	type Person struct {
    		Name string
    		Age  int
    	}
    	people := []Person{
    		{"Gopher", 13},
    		{"Alice", 55},
    		{"Vera", 24},
    		{"Bob", 55},
    	}
    	firstOldest := slices.MaxFunc(people, func(a, b Person) int {
    		return cmp.Compare(a.Age, b.Age)
    	})
    	fmt.Println(firstOldest.Name)
    	// Output:
    	// Alice
    }
    
    func ExampleMin() {
    	numbers := []int{0, 42, -10, 8}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:28:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/regalloc.go

    	var r register
    	maxuse := int32(-1)
    	for t := register(0); t < s.numRegs; t++ {
    		if mask>>t&1 == 0 {
    			continue
    		}
    		v := s.regs[t].v
    		if n := s.values[v.ID].uses.dist; n > maxuse {
    			// v's next use is farther in the future than any value
    			// we've seen so far. A new best spill candidate.
    			r = t
    			maxuse = n
    		}
    	}
    	if maxuse == -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  9. api/go1.21.txt

    pkg slices, func IsSortedFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) bool #60091
    pkg slices, func Max[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) $1 #60091
    pkg slices, func MaxFunc[$0 interface{ ~[]$1 }, $1 interface{}]($0, func($1, $1) int) $1 #60091
    pkg slices, func Min[$0 interface{ ~[]$1 }, $1 cmp.Ordered]($0) $1 #60091
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg time, var UTC *Location
    pkg unicode, const LowerCase ideal-int
    pkg unicode, const MaxASCII ideal-char
    pkg unicode, const MaxCase ideal-int
    pkg unicode, const MaxLatin1 ideal-char
    pkg unicode, const MaxRune ideal-char
    pkg unicode, const ReplacementChar ideal-char
    pkg unicode, const TitleCase ideal-int
    pkg unicode, const UpperCase ideal-int
    pkg unicode, const UpperLower ideal-char
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top