aboutsummaryrefslogtreecommitdiff
path: root/src/string_immutable.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/string_immutable.zig')
-rw-r--r--src/string_immutable.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/string_immutable.zig b/src/string_immutable.zig
index 76b8b7073..f3a7cdf5e 100644
--- a/src/string_immutable.zig
+++ b/src/string_immutable.zig
@@ -3983,3 +3983,12 @@ pub fn cloneNormalizingSeparators(
return buf[0 .. @ptrToInt(remain.ptr) - @ptrToInt(buf.ptr)];
}
+
+pub fn leftHasAnyInRight(to_check: []const string, against: []const string) bool {
+ for (to_check) |check| {
+ for (against) |item| {
+ if (eqlLong(check, item, true)) return true;
+ }
+ }
+ return false;
+}