AK: Mark StringView::find_any_of() as const

This commit is contained in:
Andrew Kaster 2021-10-31 14:53:22 -06:00 committed by Andreas Kling
parent 163367da39
commit 64edf17eb2
Notes: sideshowbarker 2024-07-18 01:08:00 +09:00

View file

@ -99,7 +99,7 @@ public:
[[nodiscard]] Vector<size_t> find_all(StringView needle) const;
using SearchDirection = StringUtils::SearchDirection;
[[nodiscard]] Optional<size_t> find_any_of(StringView needles, SearchDirection direction = SearchDirection::Forward) { return StringUtils::find_any_of(*this, needles, direction); }
[[nodiscard]] Optional<size_t> 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
{