The MSpan method
This method searches for the first occurrence in the multibyte character string s1 of any character from the multibyte character string s2.
char *MSpan(const char *s1, const char *s2,
int nbytes1 = ITLocale::ScanToNul,
int nbytes2 = ITLocale::ScanToNul) const
The nbytes1 and nbytes2 parameters
specify the length of the s1 and s2 strings. You can
provide an integer to specify the number of bytes 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 in s1 of any
character from s2. If no character from s2 is found
in s1 the method returns NULL
and ITLocale::GetError() returns 0
.
If
an error occurs, the method returns NULL
and ITLocale::GetError() returns
a specific error message.