aboutsummaryrefslogtreecommitdiff
path: root/src/string.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.zig')
-rw-r--r--src/string.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/string.zig b/src/string.zig
index 6fe819013..c093953d9 100644
--- a/src/string.zig
+++ b/src/string.zig
@@ -846,6 +846,10 @@ pub const String = extern struct {
}
}
+ pub fn eqlUTF8(this: String, other: []const u8) bool {
+ return this.toZigString().eql(ZigString.initUTF8(other));
+ }
+
pub fn eql(this: String, other: String) bool {
return this.toZigString().eql(other.toZigString());
}