AK: Add case insensitive version of starts_with

This commit is contained in:
Luke 2020-07-18 17:59:38 +01:00 committed by Andreas Kling
commit a5ecb9bd6b
Notes: sideshowbarker 2024-07-19 04:42:15 +09:00
11 changed files with 53 additions and 20 deletions

View file

@ -72,7 +72,7 @@ public:
unsigned hash() const;
bool starts_with(const StringView&) const;
bool starts_with(const StringView&, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
bool ends_with(const StringView&, CaseSensitivity = CaseSensitivity::CaseSensitive) const;
bool starts_with(char) const;
bool ends_with(char) const;