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::FindOneOf
CString                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  int FindOneOf( const char* pszCharSet ) const;
 
  Parameter    Description
 
  <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
 
 
                                     -♦-