diff options
author | Luke <luke.wilde@live.co.uk> | 2020-07-18 17:59:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-21 01:08:32 +0200 |
commit | a5ecb9bd6b287e69bcd9565c0b33410527b34b58 (patch) | |
tree | 3959002fbe0f3bd61f7a97ad9d910a4670d6bc40 /AK/StringView.h | |
parent | ccc929dcf90af7d2e0d6936be0f6b80d526f0ce7 (diff) | |
download | serenity-a5ecb9bd6b287e69bcd9565c0b33410527b34b58.zip |
AK: Add case insensitive version of starts_with
Diffstat (limited to 'AK/StringView.h')
-rw-r--r-- | AK/StringView.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/StringView.h b/AK/StringView.h index 2d05bea0a7..35c99e69f5 100644 --- a/AK/StringView.h +++ b/AK/StringView.h @@ -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; |