debian-forge-composer/vendor/github.com/aws/aws-sdk-go-v2/internal/strings/strings.go
Sanne Raymaekers 5e3bc8a705 go.mod: vendor aws-sdk-v2
Removes the v1 aws sdk.
2024-08-20 15:32:40 +02:00

11 lines
288 B
Go

package strings
import (
"strings"
)
// HasPrefixFold tests whether the string s begins with prefix, interpreted as UTF-8 strings,
// under Unicode case-folding.
func HasPrefixFold(s, prefix string) bool {
return len(s) >= len(prefix) && strings.EqualFold(s[0:len(prefix)], prefix)
}