1
0
mirror of https://github.com/ceph/ceph-csi.git synced 2025-02-24 19:09:30 +00:00
ceph-csi/vendor/github.com/aws/aws-sdk-go/internal/strings/strings.go

12 lines
288 B
Go
Raw Normal View History

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)
}