Standard C++ Library Reference ISO/IEC (VERSION3)

basic_string::find
size_type find(value_type ch, size_type off = 0) const;
size_type find(const value_type *ptr,
size_type off = 0) const;
size_type find(const value_type *ptr, size_type off,
size_type count) const;
size_type find(const basic_string& right,
size_type off = 0) const;
The member functions each find the first (lowest beginning position) subsequence in the
controlled sequence, beginning on or after position off, that matches the operand sequence
specified by the remaining operands. If it succeeds, it returns the position where the matching
subsequence begins. Otherwise, the function returns npos.
basic_string::find_first_not_of
size_type find_first_not_of(value_type ch,
size_type off = 0) const;
size_type find_first_not_of(const value_type *ptr,
size_type off = 0) const;
size_type find_first_not_of(const value_type *ptr,
size_type off, size_type count) const;
size_type find_first_not_of(const basic_string& right,
size_type off = 0) const;
The member functions each find the first (lowest position) element of the controlled sequence, at
or after position off, that matches none of the elements in the operand sequence specified by the
remaining operands. If it succeeds, it returns the position. Otherwise, the function returns npos.
basic_string::find_first_of
size_type find_first_of(value_type ch,
size_type off = 0) const;
size_type find_first_of(const value_type *ptr,
size_type off = 0) const;
size_type find_first_of(const value_type *ptr,
size_type off, size_type count) const;
size_type find_first_of(const basic_string& right,
size_type off = 0) const;
The member functions each find the first (lowest position) element of the controlled sequence, at
or after position off, that matches any of the elements in the operand sequence specified by the
remaining operands. If it succeeds, it returns the position. Otherwise, the function returns npos.