(b byte)
| 3 | import "slices" |
| 4 | |
| 5 | func toLowerASCII(b byte) byte { |
| 6 | if b >= 'A' && b <= 'Z' { |
| 7 | return b + ('a' - 'A') |
| 8 | } |
| 9 | return b |
| 10 | } |
| 11 | |
| 12 | func normalizeQuery(q string) string { |
| 13 | b := make([]byte, 0, len(q)) |
no outgoing calls
no test coverage detected