diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-07-04 22:34:00 +0430 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-01 08:39:26 +0200 |
commit | fd64be02e0774ec10e823de15886b8a946545877 (patch) | |
tree | 55a7b9a1cd048fcfd136ba05e7804fae7d13f205 /AK/StringView.h | |
parent | 1ad51325adfc6626f459ab5919fe8e26bea3271c (diff) | |
download | serenity-fd64be02e0774ec10e823de15886b8a946545877.zip |
AK: Add StringView::contains(StringView)
Diffstat (limited to 'AK/StringView.h')
-rw-r--r-- | AK/StringView.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/StringView.h b/AK/StringView.h index c0d65a511b..c61a99e352 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -83,6 +83,7 @@ public: bool ends_with(char) const; bool matches(const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive) const; bool contains(char) const; + bool contains(const StringView&) const; bool equals_ignoring_case(const StringView& other) const; Optional<size_t> find_first_of(char) const; |