libluna: Make String::split() inline
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
376247ba8a
commit
1d6a39c924
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user