| ... | @@ -482,7 +482,7 @@ pub fn sliceTo(comptime T: type, haystack: []const T, needle: T) []const T { | ... | @@ -482,7 +482,7 @@ pub fn sliceTo(comptime T: type, haystack: []const T, needle: T) []const T { |
| 482 | return haystack; | 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 | for (haystack) |c| { | 486 | for (haystack) |c| { |
| 487 | if (!needle(c)) { | 487 | if (!needle(c)) { |
| 488 | return false; | 488 | return false; |
| ... | @@ -491,7 +491,7 @@ pub fn matchesAll(comptime T: type, haystack: []const u8, comptime needle: fn (T | ... | @@ -491,7 +491,7 @@ pub fn matchesAll(comptime T: type, haystack: []const u8, comptime needle: fn (T |
| 491 | return true; | 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 | for (haystack) |c| { | 495 | for (haystack) |c| { |
| 496 | if (needle(c)) { | 496 | if (needle(c)) { |
| 497 | return true; | 497 | return true; |