BAN: StringView::Split now accepts a function
Original overload with char is not threadsafe anymore, but I don't want to duplicate code :)
This commit is contained in:
@@ -25,6 +25,7 @@ namespace BAN
|
||||
StringView Substring(size_type, size_type = -1) const;
|
||||
|
||||
ErrorOr<Vector<StringView>> Split(char, bool = false);
|
||||
ErrorOr<Vector<StringView>> Split(bool(*comp)(char), bool = false);
|
||||
|
||||
size_type Count(char) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user