| N such that N <= pos and N < size() , and such that (*this)[N] compares equal to some character within s. Returns npos if no such character position exists. |
size_type find_last_of(const charT* s, size_type pos, size_type n) const | Searches backward within *this for the first character that is equal to any character within the range [s, s+n). That is, returns the largest character position N such that N <= pos and N < size(), and such that (*this)[N] compares equal to some character within [s, s+n). Returns npos if no such character position exists. |
size_type find_last_of(const charT* s, size_type pos = npos) const | Equivalent to find_last_of(s, pos, traits::length(s)) . |
size_type find_last_of(charT c, size_type pos = npos) const | Equivalent to rfind(c, pos). |
| size_type find_last_not_of(const basic_string& s, size_type pos = npos) const | Searches backward within *this for the first character that is not equal to any character within s. That is, returns the largest character position N such that N <= pos and N < size() , and such that (*this)[N] does not compare equal to any character within s. Returns npos if no such character position exists. |
size_type find_last_not_of(const charT* s, size_type pos, size_type n) const | Searches backward within *this for the first character that is not equal to any character within [s, s+n). That is, returns the largest character position N such that N <= pos and N < size (), and such that (*this)[N] does not compare equal to any character within [s, s+n). Returns npos if no such character position exists. |
size_type find_last_not_of(const charT* s, size_type pos = npos) const | Equivalent to find_last_of(s, pos, traits::length(s)) . |
size_type find_last_not_of(charT c, size_type pos = npos) const | Searches backward *this for the first character that is not equal to c. That is, returns the largest character position N such that N <= pos and N < size(), and such that (*this)[N] does not compare equal to c. |
basic_string substr(size_type pos = 0, size_type n = npos) const | Equivalent to basic_string(*this, pos, n). |
int compare(const basic_string& s) const | Three-way lexicographical comparison of s and *this, much like strcmp. If traits::compare(data, s.data(), min(size(), s.size())) is nonzero, then it returns that nonzero value. Otherwise returns a negative number if size() < s.size(), a positive number if size() > s.size(), and zero if the two are equal. |
int compare(size_type pos, size_type n, const basic_string& s) const | Three-way lexicographical comparison of s and a substring of *this. Equivalent to basic_string(*this, pos, n).compare(s) . |
int compare(size_type pos, size_type n, const basic_string& s, size_type pos1, size_type n1) const | Three-way lexicographical comparison of a substring of s and a substring of *this. Equivalent to basic_string(*this, pos, n).compare(basic_string(s, pos1, n1)). |
int compare(const charT* s) const | Three-way lexicographical comparison of s and *this. Equivalent to compare(basic_string(s)). |
int compare(size_type pos, size_type n, const charT* s, size_type len = npos) const | Three-way lexicographical comparison of the first min(len, traits::length(s) characters of s and a substring of *this. Equivalent to basic_string(*this, pos, n).compare(basic_string(s, min (len, traits::length(s)))). |