Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LastIndexRabinKarp (0.07 sec)

  1. src/bytes/bytes.go

    	case n == 1:
    		return bytealg.LastIndexByte(s, sep[0])
    	case n == len(s):
    		if Equal(s, sep) {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	}
    	return bytealg.LastIndexRabinKarp(s, sep)
    }
    
    // LastIndexByte returns the index of the last instance of c in s, or -1 if c is not present in s.
    func LastIndexByte(s []byte, c byte) int {
    	return bytealg.LastIndexByte(s, c)
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Sep 03 14:04:47 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top