mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +00:00
AK: Mark StringView::find_any_of() as const
This commit is contained in:
parent
163367da39
commit
64edf17eb2
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ public:
|
||||||
[[nodiscard]] Vector<size_t> find_all(StringView needle) const;
|
[[nodiscard]] Vector<size_t> find_all(StringView needle) const;
|
||||||
|
|
||||||
using SearchDirection = StringUtils::SearchDirection;
|
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
|
[[nodiscard]] constexpr StringView substring_view(size_t start, size_t length) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue