Add ctl string find_first_of and find_last_of

This commit is contained in:
Justine Tunney 2024-10-28 18:25:39 -07:00
parent 107d335c0d
commit beb090b83f
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 244 additions and 0 deletions

View file

@ -137,6 +137,10 @@ class string
bool starts_with(ctl::string_view) const noexcept;
size_t find(char, size_t = 0) const noexcept;
size_t find(ctl::string_view, size_t = 0) const noexcept;
size_t find_first_of(char, size_t = 0) const noexcept;
size_t find_first_of(ctl::string_view, size_t = 0) const noexcept;
size_t find_last_of(char, size_t = npos) const noexcept;
size_t find_last_of(ctl::string_view, size_t = npos) const noexcept;
void swap(string& s) noexcept
{