aboutsummaryrefslogtreecommitdiff
path: root/src/string_immutable.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/string_immutable.zig6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig
index 207b6634d..e6ee76634 100644
--- a/src/string_immutable.zig
+++ b/src/string_immutable.zig
@@ -433,7 +433,7 @@ pub fn eqlCaseInsensitiveASCII(a: string, comptime b: anytype, comptime check_le
return true;
}
-pub fn eqlLong(a_: string, b: string, comptime check_len: bool) bool {
+pub fn eqlLongWithType(comptime Type: type, a_: Type, b: Type, comptime check_len: bool) bool {
if (comptime check_len) {
if (a_.len == 0) {
return b.len == 0;
@@ -483,6 +483,10 @@ pub fn eqlLong(a_: string, b: string, comptime check_len: bool) bool {
return true;
}
+pub fn eqlLong(a_: string, b: string, comptime check_len: bool) bool {
+ return eqlLongWithType(string, a_, b, check_len);
+}
+
pub inline fn append(allocator: std.mem.Allocator, self: string, other: string) !string {
return std.fmt.allocPrint(allocator, "{s}{s}", .{ self, other });
}