Sha256: 8295a5cf60b0a938e0221d6f95ffa8396f965bfe5319ecad17a384698bcf7b5b
Contents?: true
Size: 288 Bytes
Versions: 16
Compression:
Stored size: 288 Bytes
Contents
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) }
Version data entries
16 entries across 16 versions & 1 rubygems