Searches this string for the first character that matches any character contained in pszCharSet.
int FindOneOf( PCXSTR pszCharSet ) const throw();
- String containing characters for matching.
The zero-based index of the first character in this string that is also in pszCharSet; –1 if there is no match.
Finds the first occurrence of any of the characters in pszCharSet.
The following example demonstrates the use of CStringT::FindOneOf.
//typedef CStringT< TCHAR, StrTraitATL< TCHAR > > CAtlString; CAtlString s( "abcdef" ); _ASSERT( s.FindOneOf( "xd" ) == 3 ); // 'd' is first match