- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for ContainsAny (0.4 sec)
-
src/bytes/example_test.go
// true // false // true // true } func ExampleContainsAny() { fmt.Println(bytes.ContainsAny([]byte("I like seafood."), "fÄo!")) fmt.Println(bytes.ContainsAny([]byte("I like seafood."), "去是伟大的.")) fmt.Println(bytes.ContainsAny([]byte("I like seafood."), "")) fmt.Println(bytes.ContainsAny([]byte(""), "")) // Output: // true // true // false // false }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 12 16:07:54 UTC 2025 - 16.5K bytes - Viewed (0) -
cmd/metacache-marker.go
func (o listPathOptions) encodeMarker(marker string) string { if o.ID == "" { // Mark as returning listing... return fmt.Sprintf("%s[minio_cache:%s,return:]", marker, markerTagVersion) } if strings.ContainsAny(o.ID, "[:,") { internalLogIf(context.Background(), fmt.Errorf("encodeMarker: uuid %s contained invalid characters", o.ID)) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.5K bytes - Viewed (0) -
cmd/api-headers.go
// compatibility. if needsMimeEncoding(v) { // see https://github.com/golang/go/blob/release-branch.go1.24/src/net/mail/message.go#L325 if strings.ContainsAny(v, "\"#$%&'(),.:;<>@[]^`{|}~") { v = mime.BEncoding.Encode("UTF-8", v) } else { v = mime.QEncoding.Encode("UTF-8", v) } } w.Header()[strings.ToLower(k)] = []string{v} isSet = true
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 8.6K bytes - Viewed (0) -
src/bytes/bytes.go
s = s[i+len(sep):] } } // Contains reports whether subslice is within b. func Contains(b, subslice []byte) bool { return Index(b, subslice) != -1 } // ContainsAny reports whether any of the UTF-8-encoded code points in chars are within b. func ContainsAny(b []byte, chars string) bool { return IndexAny(b, chars) >= 0 } // ContainsRune reports whether the rune is contained in the UTF-8-encoded byte slice b.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 35.5K bytes - Viewed (0) -
src/bytes/bytes_test.go
{[]byte("aRegExp*"), ".(|)*+?^$[]", true}, {[]byte(dots + dots + dots), " ", false}, } func TestContainsAny(t *testing.T) { for _, ct := range ContainsAnyTests { if ContainsAny(ct.b, ct.substr) != ct.expected { t.Errorf("ContainsAny(%s, %s) = %v, want %v", ct.b, ct.substr, !ct.expected, ct.expected) } } } var ContainsRuneTests = []struct { b []byte r rune
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0) -
docs/debugging/xl-meta/main.go
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 40.3K bytes - Viewed (0) -
cmd/object-api-utils.go
Bucket: bucket, Object: object, } } if runtime.GOOS == globalWindowsOSName { // Explicitly disallowed characters on windows. // Avoids most problematic names. if strings.ContainsAny(object, `\:*?"|<>`) { return ObjectNameInvalid{ Bucket: bucket, Object: object, } } } return nil } // SlashSeparator - slash separator. const SlashSeparator = "/"
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Wed Jun 25 15:08:54 UTC 2025 - 37.3K bytes - Viewed (0) -
cmd/xl-storage.go
func isValidVolname(volname string) bool { if len(volname) < 3 { return false } if runtime.GOOS == "windows" { // Volname shouldn't have reserved characters in Windows. return !strings.ContainsAny(volname, `\:*?\"<>|`) } return true } // xlStorage - implements StorageAPI interface. type xlStorage struct { // Indicate of NSScanner is in progress in this disk scanning int32
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Jun 13 11:33:47 UTC 2025 - 91.7K bytes - Viewed (0) -
lib/fips140/v1.0.0.zip
also // be added to crypto/internal/fips140test. If a package p calls CAST on the first // use of the algorithm, an invocation of that algorithm should be added to // fipstest.TestConditionals. func CAST(name string, f func() error) { if strings.ContainsAny(name, ",#=:") { panic("fips: invalid self-test name: " + name) } if !Enabled { return } err := f() if name == failfipscast { err = errors.New("simulated CAST failure") } if err != nil { fatal("FIPS 140-3 self-test failed: " + name + ": " + err.Error())...
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Jan 29 15:10:35 UTC 2025 - 635K bytes - Viewed (0)