summaryrefslogtreecommitdiff
path: root/AK/StringView.h
diff options
context:
space:
mode:
authorShannon Booth <shannon.ml.booth@gmail.com>2019-12-30 01:44:30 +1300
committerAndreas Kling <awesomekling@gmail.com>2019-12-29 22:04:22 +0100
commit24bc674d94c56d9fc6ac06f442bcf23d8f2db14f (patch)
tree5e062c0b40354341d2521f9e98922f23c5ff77c4 /AK/StringView.h
parent27df4eb43da57165b002215d6b23c3b6e300bf4a (diff)
downloadserenity-24bc674d94c56d9fc6ac06f442bcf23d8f2db14f.zip
AK: Add StringView::ends_with function
Diffstat (limited to 'AK/StringView.h')
-rw-r--r--AK/StringView.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/AK/StringView.h b/AK/StringView.h
index e8cdbbbd45..d26d64c4d5 100644
--- a/AK/StringView.h
+++ b/AK/StringView.h
@@ -42,6 +42,7 @@ public:
unsigned hash() const;
bool starts_with(const StringView&) const;
+ bool ends_with(const StringView&) const;
StringView substring_view(size_t start, size_t length) const;
Vector<StringView> split_view(char, bool keep_empty = false) const;