- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for goodSuffixSkip (0.17 sec)
-
src/strings/search.go
// rightmost "abc" (at position 6) is a prefix of the whole pattern, so // goodSuffixSkip[3] == shift+len(suffix) == 6+5 == 11. goodSuffixSkip []int } func makeStringFinder(pattern string) *stringFinder { f := &stringFinder{ pattern: pattern, goodSuffixSkip: make([]int, len(pattern)), } // last is the index of the last character in the pattern. last := len(pattern) - 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 18:49:51 UTC 2023 - 4.1K bytes - Viewed (0) -
src/strings/export_test.go
func StringFind(pattern, text string) int { return makeStringFinder(pattern).next(text) } func DumpTables(pattern string) ([]int, []int) { finder := makeStringFinder(pattern) return finder.badCharSkip[:], finder.goodSuffixSkip
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.1K bytes - Viewed (0)