Home | History | Annotate | Download | only in net

Lines Matching full:suffix

327 // suffix.
328 func stringsHasSuffix(s, suffix string) bool {
329 return len(s) >= len(suffix) && s[len(s)-len(suffix):] == suffix
332 // stringsHasSuffixFold reports whether s ends in suffix,
334 func stringsHasSuffixFold(s, suffix string) bool {
335 if len(suffix) > len(s) {
338 for i := 0; i < len(suffix); i++ {
339 if lowerASCII(suffix[i]) != lowerASCII(s[len(s)-len(suffix)+i]) {