The MLength method
This method returns the number of characters (not bytes) in the multibyte character string s, not including the null terminator, if there is one.
int MLength(const char *s, int nbytes =
ITLocale::ScanToNul) const
The nstrbytes parameter
specifies the length in bytes 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.
If
there is an error, this method returns -1
. Call ITLocale::GetError() to
retrieve a specific error message.