The MRScan method

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

char *MRScan(const char *s, const char *c, 
           int nsbytes = ITLocale::ScanToNul, 
           int ncbytes = ITLocale::ScanNoLimit) const

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

The ncbytes parameter specifies the length of the corresponding multibyte character c. You can provide an integer to specify the number of bytes in c, in which case this method reads up to this many bytes from c when trying to form a complete character. Or you can set ncbytes to ITLocale::ScanNoLimit (the default), in which case this method reads as many bytes as necessary to form a complete character.

This method returns a pointer to the last occurrence of the multibyte character c in the string s. If this method does not find c in s, it returns NULL. Call ITLocale::GetError() to retrieve a specific error message.