- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for ContainsFunc (0.16 seconds)
-
src/bytes/bytes.go
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). // It stops as soon as a call to f returns true. func ContainsFunc(b []byte, f func(rune) bool) bool { return IndexFunc(b, f) >= 0 }
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Thu Mar 12 17:56:55 GMT 2026 - 36.3K bytes - Click Count (0) -
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 {
Created: Tue Apr 07 11:13:11 GMT 2026 - Last Modified: Wed Mar 11 03:07:05 GMT 2026 - 62.9K bytes - Click Count (0)