AK: Add default value for ByteString::find_any_of::direction

This commit is contained in:
stasoid 2024-12-23 18:29:53 +05:00 committed by Andrew Kaster
parent a6bea99959
commit 4180fe5b58
Notes: github-actions[bot] 2025-02-06 22:16:27 +00:00

View file

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