Call this member function to search the string for the first occurrence of any character in the specified set lpszCharSet. SpanExcluding extracts and returns all characters preceding the specified character set (in other words, the specified character set, and all characters following it in the string, are not returned). If the specified character set is not found in the string, then SpanExcluding returns an empty string.
CString SpanExcluding( LPCTSTR lpszCharSet ) const;
throw( CMemoryException );
Header File | Afx.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CString Overview, CString Member Functions, Simple Value Types, CString::SpanIncluding