From 4180fe5b589119b782de824b6f1539f004342332 Mon Sep 17 00:00:00 2001 From: stasoid Date: Mon, 23 Dec 2024 18:29:53 +0500 Subject: [PATCH] AK: Add default value for ByteString::find_any_of::direction --- AK/ByteString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/ByteString.h b/AK/ByteString.h index 9b399671759..e528985c855 100644 --- a/AK/ByteString.h +++ b/AK/ByteString.h @@ -180,7 +180,7 @@ public: [[nodiscard]] Optional find_last(StringView needle) const { return StringUtils::find_last(*this, needle); } Vector find_all(StringView needle) const; using SearchDirection = StringUtils::SearchDirection; - [[nodiscard]] Optional find_any_of(StringView needles, SearchDirection direction) const { return StringUtils::find_any_of(*this, needles, direction); } + [[nodiscard]] Optional find_any_of(StringView needles, SearchDirection direction = SearchDirection::Forward) const { return StringUtils::find_any_of(*this, needles, direction); } [[nodiscard]] StringView find_last_split_view(char separator) const& { return view().find_last_split_view(separator); } [[nodiscard]] StringView find_last_split_view(char separator) const&& = delete;