- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for ContainsFunc (0.06 sec)
-
src/bytes/bytes.go
// ContainsRune reports whether the rune is contained in the UTF-8-encoded byte slice b. func ContainsRune(b []byte, r rune) bool { return IndexRune(b, r) >= 0 } // ContainsFunc reports whether any of the UTF-8-encoded code points r within b satisfy f(r). func ContainsFunc(b []byte, f func(rune) bool) bool { return IndexFunc(b, f) >= 0 } // IndexByte returns the index of the first instance of c in b, or -1 if c is not present in 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) -
cmd/generic-handlers.go
return } // Check for bad components in URL query values. for k, vv := range r.Form { if k == "delimiter" { // delimiters are allowed to have `.` or `..` continue } if slices.ContainsFunc(vv, hasBadPathComponent) { if ok { tc.FuncName = "handler.ValidRequest" tc.ResponseRecorder.LogErrBody = true } defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r))
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 20.7K bytes - Viewed (1) -
src/bytes/bytes_test.go
ct.b, ct.r, !ct.expected, ct.expected) } } } func TestContainsFunc(t *testing.T) { for _, ct := range ContainsRuneTests { if ContainsFunc(ct.b, func(r rune) bool { return ct.r == r }) != ct.expected { t.Errorf("ContainsFunc(%q, func(%q)) = %v, want %v", ct.b, ct.r, !ct.expected, ct.expected) } } } var makeFieldsInput = func() []byte {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon Jul 28 18:13:58 UTC 2025 - 62.9K bytes - Viewed (0)