`CString::SpanExcluding` is a member function of the MFC CString class that returns a substring from the beginning of the string up to, but not including, the first occurrence of any of the specified characters.
For example, `CString str("Hello World");` and `CString sub = str.SpanExcluding("oW");` will create a substring `sub` that contains `"Hell"`.
Here's another example: `CString input = "User ID: JohnDoe";` and `CString userID = input.SpanExcluding(": ");` will extract the user ID as `"User"`.
This function belongs to the Microsoft Foundation Class (MFC) library. Here is an example code snippet:
#include // include MFC header
CString testString = "This is a test string.";
CString subStr = testString.SpanExcluding("test");
// prints "This is a "
C++ (Cpp) CString::SpanExcluding - 30 examples found. These are the top rated real world C++ (Cpp) examples of CString::SpanExcluding extracted from open source projects. You can rate examples to help us improve the quality of examples.