The MNCopy method
This method copies the specified number of multibyte characters in from to the location pointed to by to.
int MNCopy(char *to, const char *from, int limit,
int nfrombytes = ITLocale::ScanToNul) const
Use limit to specify the maximum number of characters to read from the from string.
The nfrombytes argument
specifies the length of the corresponding string from. You
can provide an integer to specify the number of bytes in from.
Or you can use the constant ITLocale::ScanToNul
(the
default) to specify that from is a null-terminated string.
This method returns the length in bytes of the resulting copied string, not including the null terminator if there is one.
If there
is an error, this method returns -1
. Call ITLocale::GetError() to
retrieve a specific error message.