1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:37:47 +00:00

AK: Enhance String::contains to allow case-insensitive searches

This commit is contained in:
Tom 2020-10-20 15:07:03 -06:00 committed by Andreas Kling
parent 6413acd78c
commit 25e7225782
7 changed files with 54 additions and 8 deletions

View file

@ -128,7 +128,7 @@ public:
bool equals_ignoring_case(const StringView&) const;
bool contains(const String&) const;
bool contains(const StringView&, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
Optional<size_t> index_of(const String&, size_t start = 0) const;
Vector<String> split_limit(char separator, size_t limit, bool keep_empty = false) const;