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

AK: Add a keep_empty argument to String[View]::substring{_view}

This commit is contained in:
Sergey Bugaev 2019-09-21 00:43:37 +03:00 committed by Andreas Kling
parent 07ca753124
commit 127d168def
4 changed files with 10 additions and 10 deletions

View file

@ -44,7 +44,7 @@ public:
bool starts_with(const StringView&) const;
StringView substring_view(int start, int length) const;
Vector<StringView> split_view(char) const;
Vector<StringView> split_view(char, bool keep_empty = false) const;
// FIXME: These should be shared between String and StringView somehow!
unsigned to_uint(bool& ok) const;