Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IndexFunc (0.05 sec)

  1. src/bytes/bytes_test.go

    	{"a\xe0\x80cd", not(isValidRune), 1, 2},
    }
    
    func TestIndexFunc(t *testing.T) {
    	for _, tc := range indexFuncTests {
    		first := IndexFunc([]byte(tc.in), tc.f.f)
    		if first != tc.first {
    			t.Errorf("IndexFunc(%q, %s) = %d; want %d", tc.in, tc.f.name, first, tc.first)
    		}
    		last := LastIndexFunc([]byte(tc.in), tc.f.f)
    		if last != tc.last {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Jul 28 18:13:58 UTC 2025
    - 62.9K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    		// then add only one delete marker if requested
    		sort.SliceStable(fivs.Versions, func(i, j int) bool {
    			return !fivs.Versions[i].Deleted
    		})
    		if idx := slices.IndexFunc(fivs.Versions, func(fi FileInfo) bool {
    			return fi.Deleted
    		}); idx > -1 {
    			fivs.Versions = fivs.Versions[:idx+1]
    		}
    		dedupVersions = append(dedupVersions, fivs)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 80.4K bytes
    - Viewed (0)
Back to top