From 64edf17eb27977fd19a9ff23be787c4bf5c976e5 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 31 Oct 2021 14:53:22 -0600 Subject: [PATCH] AK: Mark StringView::find_any_of() as const --- AK/StringView.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/StringView.h b/AK/StringView.h index f03b07c385e..c8874333add 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -99,7 +99,7 @@ public: [[nodiscard]] Vector find_all(StringView needle) const; using SearchDirection = StringUtils::SearchDirection; - [[nodiscard]] Optional find_any_of(StringView needles, SearchDirection direction = SearchDirection::Forward) { 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]] constexpr StringView substring_view(size_t start, size_t length) const {