summaryrefslogtreecommitdiff
path: root/AK/String.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2020-01-22 17:17:27 +0300
committerAndreas Kling <kling@serenityos.org>2020-01-22 21:22:23 +0100
commit6a64077ed7848501c1051fc1e90e9e270b639e20 (patch)
tree7fde31e4de40a561ee5f87850627b66fbbf830cb /AK/String.h
parent9cbce68b1d508a6aa3d1d074aa35b9d35a73e620 (diff)
downloadserenity-6a64077ed7848501c1051fc1e90e9e270b639e20.zip
AK: Also add a keep_empty argument to String::split[_limit]()
Just like String[View]::split_view() has already.
Diffstat (limited to 'AK/String.h')
-rw-r--r--AK/String.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/String.h b/AK/String.h
index 0f7a716192..62e82b6180 100644
--- a/AK/String.h
+++ b/AK/String.h
@@ -140,8 +140,8 @@ public:
bool contains(const String&) const;
- Vector<String> split_limit(char separator, size_t limit) const;
- Vector<String> split(char separator) const;
+ Vector<String> split_limit(char separator, size_t limit, bool keep_empty = false) const;
+ Vector<String> split(char separator, bool keep_empty = false) const;
String substring(size_t start, size_t length) const;
Vector<StringView> split_view(char separator, bool keep_empty = false) const;