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

@ -125,6 +125,7 @@ class string
void append(char, size_t) noexcept;
void append(unsigned long) noexcept;
void append(const void*, size_t) noexcept;
void append(const ctl::string_view&, size_t, size_t = npos) noexcept;
string& insert(size_t, ctl::string_view) noexcept;
string& erase(size_t = 0, size_t = npos) noexcept;
string substr(size_t = 0, size_t = npos) const noexcept;
@ -302,7 +303,7 @@ class string
append(ch);
}
void append(const ctl::string_view s) noexcept
void append(const ctl::string_view& s) noexcept
{
append(s.p, s.n);
}