Add missing ctl::string append method

This commit is contained in:
Justine Tunney 2024-10-28 17:52:01 -07:00
parent a120bc7149
commit bd6630d62d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 16 additions and 1 deletions

View file

@ -383,4 +383,10 @@ string::erase(const size_t pos, size_t count) noexcept
return *this;
}
void
string::append(const ctl::string_view& s, size_t pos, size_t count) noexcept
{
append(s.substr(pos, count));
}
} // namespace ctl