CString::FindOneOf

intFindOneOf(LPCTSTRlpszCharSet**)const;**

Return Value

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

Parameters

lpszCharSet

String containing characters for matching.

Remarks

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

Example

The following example demonstrates the use of CString::FindOneOf.

// example for CString::FindOneOf
CString s( "abcdef" );
ASSERT( s.FindOneOf( "xd" ) == 3 ); // 'd' is first match

CString OverviewClass MembersHierarchy Chart

See Also   CString::Find