mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
AK: Also add a keep_empty argument to String::split[_limit]()
Just like String[View]::split_view() has already.
This commit is contained in:
parent
9cbce68b1d
commit
6a64077ed7
2 changed files with 7 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue