The WScan method

This method locates the first occurrence of wide character c in the wide character string s.

ITWChar *WScan(const ITWChar *s, ITWChar c, 
               int nswchars = ITLocale::ScanToNul) const

The nswchars parameter specifies the length of the corresponding wide character string s. You can provide an integer to specify the number of characters in s. Or you can use the constant ITLocale::ScanToNul (the default) to specify that s is a null-terminated string.

This method returns a pointer to the first occurrence of c in s. If this method does not find c in s, it returns NULL and ITLocale::GetError() returns 0.

If there is an error, this method returns NULL and ITLocale::GetError() returns a specific error number.