libluna: Make String::split() inline
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-05-01 20:05:10 +02:00
parent 376247ba8a
commit 1d6a39c924
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 5 additions and 6 deletions

View File

@ -26,7 +26,11 @@ class String
Result<String> substring(usize begin, usize size) const;
Result<Vector<String>> split(StringView delim) const;
Result<Vector<String>> split(StringView delim) const
{
return view().split(delim);
}
Result<Vector<String>> split_once(char delim) const
{
return view().split_once(delim);

View File

@ -81,11 +81,6 @@ Result<String> String::substring(usize begin, usize size) const
return String { dup, size };
}
Result<Vector<String>> String::split(StringView delim) const
{
return view().split(delim);
}
void String::trim(StringView delim)
{
isize i = (isize)m_length;