CString::ReverseFind

Syntax

int ReverseFind( char ch ) const;

Parameters

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