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

@ -45,6 +45,10 @@ struct string_view
string_view substr(size_t = 0, size_t = npos) const noexcept;
size_t find(char, size_t = 0) const noexcept;
size_t find(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;
constexpr string_view& operator=(const string_view s) noexcept
{