| ... | ... | @@ -482,7 +482,7 @@ pub fn sliceTo(comptime T: type, haystack: []const T, needle: T) []const T { |
| 482 | 482 | return haystack; |
| 483 | 483 | } |
| 484 | 484 | |
| 485 | | pub fn matchesAll(comptime T: type, haystack: []const u8, comptime needle: fn (T) bool) bool { |
| 485 | pub fn matchesAll(comptime T: type, haystack: []const T, comptime needle: fn (T) bool) bool { |
| 486 | 486 | for (haystack) |c| { |
| 487 | 487 | if (!needle(c)) { |
| 488 | 488 | return false; |
| ... | ... | @@ -491,7 +491,7 @@ pub fn matchesAll(comptime T: type, haystack: []const u8, comptime needle: fn (T |
| 491 | 491 | return true; |
| 492 | 492 | } |
| 493 | 493 | |
| 494 | | pub fn matchesAny(comptime T: type, haystack: []const u8, comptime needle: fn (T) bool) bool { |
| 494 | pub fn matchesAny(comptime T: type, haystack: []const T, comptime needle: fn (T) bool) bool { |
| 495 | 495 | for (haystack) |c| { |
| 496 | 496 | if (needle(c)) { |
| 497 | 497 | return true; |