#include <nitro/std.h>
inline int STD_ConvertCharUnicodeToSjis(char *dst, u16 src);
dst | ShiftJIS character string buffer for storing the converted string Be sure to specify a buffer for which two or more bytes of memory have been allocated. |
src | The Unicode format character to be converted |
If the conversion is successful, the converted number of bytes (=1 or 2) will return. If the conversion fails, a -1 will return.
This function converts a Unicode-format character to a ShiftJIS-format character.STD_ConvertStringUnicodeToSjis
is called internally, and only one character is converted.
If the ShiftJIS character after conversion is a two-byte character, it will be necessary to pass a buffer to dst for which two or more bytes have been allocated.
If it is unclear whether the character is single- or double-byte after conversion, be sure to pass a buffer of at least 2 bytes.
STD_ConvertStringUnicodeToSjis
07/24/2006 Changed the interface.
07/05/2006 Initial version.
CONFIDENTIAL