runeFrequency returns the count of each rune in s.
(s string)
| 1427 | |
| 1428 | // runeFrequency returns the count of each rune in s. |
| 1429 | func runeFrequency(s string) map[rune]int { |
| 1430 | freq := make(map[rune]int) |
| 1431 | for _, r := range s { |
| 1432 | freq[r]++ |
| 1433 | } |
| 1434 | return freq |
| 1435 | } |
| 1436 | |
| 1437 | // seekLines scans contentLines looking for a contiguous subsequence that matches |
| 1438 | // searchLines according to the provided `eq` function. It returns the start and |
no outgoing calls
no test coverage detected