1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

AK: Add StringView::ends_with function

This commit is contained in:
Shannon Booth 2019-12-30 01:44:30 +13:00 committed by Andreas Kling
parent 27df4eb43d
commit 24bc674d94
3 changed files with 22 additions and 0 deletions

View file

@ -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;