diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2019-09-21 00:43:37 +0300 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-28 18:29:42 +0200 |
commit | 127d168def2a8f74399784d05fa7f13773939665 (patch) | |
tree | 58528a7de57f2498f9d4cbb17e1395d177fd034b /AK/String.h | |
parent | 07ca753124f9d15f6c27373e0db1c787d7765937 (diff) | |
download | serenity-127d168def2a8f74399784d05fa7f13773939665.zip |
AK: Add a keep_empty argument to String[View]::substring{_view}
Diffstat (limited to 'AK/String.h')
-rwxr-xr-x | AK/String.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/String.h b/AK/String.h index 2b299841b9..0838d9b40e 100755 --- a/AK/String.h +++ b/AK/String.h @@ -114,7 +114,7 @@ public: Vector<String> split(char separator) const; String substring(int start, int length) const; - Vector<StringView> split_view(char separator) const; + Vector<StringView> split_view(char separator, bool keep_empty = false) const; StringView substring_view(int start, int length) const; bool is_null() const { return !m_impl; } |