Standard C++ Library Class Reference
find_first_not_of(basic_string(s,n), pos)
find_first_not_of(basic_string(s), pos)
find_first_not_of(basic_string(1, c), pos)
size_type
find_first_of (const basic_string& str,
size_type pos = 0) const;
Searches for the first occurence at or after position pos of any element of str in this string. If found, the index of this
matching character is returned. If not found, npos is returned. Equality is defined by traits::eq().
size_type
find_first_of (const charT* s, size_type pos,
size_type n) const;
size_type
find_first_of (const charT* s, size_type pos = 0) const;
size_type
find_first_of (charT c, size_type pos = 0) const;
Search for the first occurence in this string of any element in a specified string. The find_first_of variations return,
respectively:
find_first_of(basic_string(s,n), pos)
find_first_of(basic_string(s), pos)
find_first_of(basic_string(1, c), pos)
size_type
find_last_not_of (const basic_string& str,
size_type pos = npos) const;
Searches for the last element of this string at or before position pos that is not equal to any element of str. If
find_last_not_of finds a non-matching element, it returns the index of the character. If all the elements match, the
function returns npos. Equality is defined by traits::eq().
size_type
find_last_not_of (const charT* s,
size_type pos, size_type n) const;
size_type
find_last_not_of (const charT* s, size_type pos = npos) const;
size_type
find_last_not_of (charT c, size_type pos = npos) const;
Search for the last element in this string at or before position pos that is not equal to any element of a given set of
characters. The members return, respectively:
find_last_not_of(basic_string(s,n), pos)
find_last_not_of(basic_string(s), pos)
find_last_not_of(basic_string(1, c), pos)
size_type
find_last_of (const basic_string& str,
size_type pos = npos) const;
Searches for the last occurence of any element of str at or before position pos in this string. If found, find_last_of returns
the index of the matching character. If not found find_last_of returns npos. Equality is defined by traits::eq().
size_type
find_last_of (const charT* s, size_type pos,
size_type n) const;
size_type
find_last_of (const charT* s, size_type pos = npos) const;
size_type
find_last_of (charT c, size_type pos = npos) const;
Search for the last occurence in this string of any element in a specified string. The members return, respectively:
find_last_of(basic_string(s,n), pos)