Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CString::ReverseFind
CString                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int ReverseFind( char ch ) const;
 
  Parameter   Description
 
  <ch>        The character to search for.
 
  Remarks
 
  Searches this CString object for the last match of a substring. The
  function is similar to the run-time function strrchr.
 
  Return Value
 
  The index of the last character in this CString object that matches the
  requested character; -1 if the character is not found.
 
  Example
 
  CString s( "abcabc" );
  ASSERT( s.ReverseFind( 'b' ) == 4 );
 
 
  See Also
 
  CString::Find, CString::FindOneOf
 
 
                                     -♦-