The WSpan method

This method searches for the first occurrence in the wide character string s1 of any wide character from the string s2.

ITWChar *WSpan(const ITWChar *s1, const ITWChar *s2,
            int nwchars1 = ITLocale::ScanToNul, 
            int nwchars2 = ITLocale::ScanToNul) const

The nwchars1 and nwchars2 parameters specify the length of the s1 and s2 strings. You can provide an integer to specify the number of characters in the corresponding string. Or you can use the constant ITLocale::ScanToNul (the default) to specify that the corresponding string is null-terminated.

This method returns a pointer to the first occurrence of the wide character string s1 in the string s2. If this method does not find s1 in s2, it returns NULL. If you call ITLocale::GetError(), it returns 0.

If there is an error, this method returns NULL. Call ITLocale::GetError() to retrieve a specific error message.