CString::FindOneOf

Syntax

int FindOneOf( const char* pszCharSet ) const;

Parameters

pszCharSet

String containing characters for matching.

Remarks

Searches this string for the first character that matches any character contained in pszCharSet.

Return Value

The zero-based index of the first character in this string that is also in pszCharSet; -1 if there is no match.

Example

CString s( "abcdef" );

ASSERT( s.FindOneOf( "xd" ) == 3 ); // 'd' is first match

See Also

CString::Find