The MScan method

This method searches for the first occurrence of the multibyte character mchar in the multibyte character string s.

char *MScan(const char *s, const char *mchar, 
   int nstrbytes = ITLocale::ScanToNul, 
   int nmcharbytes = ITLocale::ScanNoLimit) const

The nstrbytes 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 nmcharbytes parameter specifies the length of the corresponding multibyte character mchar. You can provide an integer to specify the number of bytes in mchar, in which case this method reads up to this many bytes from mchar when trying to form a complete character. Or you can set nmcharbytes 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 first occurrence of the multibyte character mchar in the string s. If mchar is not found in s, this method returns NULL. If you call ITLocale::GetError(), it returns 0.