1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:17:35 +00:00

AK: Add StringView::contains(char)

This commit is contained in:
Stephan Unverwerth 2020-04-17 15:04:40 +02:00 committed by Andreas Kling
parent 1f6578ee0a
commit b77ceecb02
2 changed files with 11 additions and 1 deletions

View file

@ -73,6 +73,7 @@ public:
bool starts_with(char) const;
bool ends_with(char) const;
bool matches(const StringView& mask, CaseSensitivity = CaseSensitivity::CaseInsensitive) const;
bool contains(char) const;
StringView substring_view(size_t start, size_t length) const;
Vector<StringView> split_view(char, bool keep_empty = false) const;