Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for LiteralPrefix (0.16 sec)

  1. src/index/suffixarray/suffixarray.go

    // or if n == 0.
    func (x *Index) FindAllIndex(r *regexp.Regexp, n int) (result [][]int) {
    	// a non-empty literal prefix is used to determine possible
    	// match start indices with Lookup
    	prefix, complete := r.LiteralPrefix()
    	lit := []byte(prefix)
    
    	// worst-case scenario: no literal prefix
    	if prefix == "" {
    		return r.FindAllIndex(x.data, n)
    	}
    
    	// if regexp is a literal just use Lookup and convert its
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top