summaryrefslogtreecommitdiff
path: root/AK/StringView.h
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-07-18 17:59:38 +0100
committerAndreas Kling <kling@serenityos.org>2020-07-21 01:08:32 +0200
commita5ecb9bd6b287e69bcd9565c0b33410527b34b58 (patch)
tree3959002fbe0f3bd61f7a97ad9d910a4670d6bc40 /AK/StringView.h
parentccc929dcf90af7d2e0d6936be0f6b80d526f0ce7 (diff)
downloadserenity-a5ecb9bd6b287e69bcd9565c0b33410527b34b58.zip
AK: Add case insensitive version of starts_with
Diffstat (limited to 'AK/StringView.h')
-rw-r--r--AK/StringView.h2
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;