Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IndexRabinKarp (0.21 sec)

  1. src/bytes/bytes.go

    			// we should cutover at even larger average skips,
    			// because Equal becomes that much more expensive.
    			// This code does not take that effect into account.
    			j := bytealg.IndexRabinKarp(s[i:], sep)
    			if j < 0 {
    				return -1
    			}
    			return i + j
    		}
    	}
    	return -1
    }
    
    // Cut slices s around the first instance of sep,
    // returning the text before and after sep.
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
Back to top