BAN: Make StringView::split const and fix bug with empties

This commit is contained in:
2024-01-03 00:14:01 +02:00
parent 1bd33e76e5
commit d2bc399770
2 changed files with 6 additions and 6 deletions

View File

@@ -30,8 +30,8 @@ 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);
ErrorOr<Vector<StringView>> split(char, bool = false) const;
ErrorOr<Vector<StringView>> split(bool(*comp)(char), bool = false) const;
char back() const;
char front() const;