The WRScan method

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

ITWChar *WRScan(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 last occurrence of wide character c in wide character string s. If this method does not find c in s, 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.