note: the prefix is expected to be ASCII
(str, prefix string)
| 179 | |
| 180 | // note: the prefix is expected to be ASCII |
| 181 | func hasPrefixFold(str, prefix string) bool { |
| 182 | if len(str) < len(prefix) { |
| 183 | return false |
| 184 | } |
| 185 | |
| 186 | return strings.EqualFold(str[:len(prefix)], prefix) |
| 187 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…