Home |
HMI (Human-Machine Interface) Classes Unicode Character Set Conversion Function UnicodeToSJIS |
Function UnicodeToSJISFunction UnicodeToSJIS converts a Unicode character or string to SJIS: PEGCHAR UnicodeToSJIS(PEGCHAR c1); void UnicodeToSJIS(PEGCHAR * s1, const PEGCHAR * s2); Parametersc1Single 16-bit Unicode character to convert. s1Pointer to a buffer to receive the translated string. s1 may be equal to s2 for in-place translation. Non-convertible characters are translated to 0. s2Pointer to a NUL-terminated string of 16-bit Unicode characters to convert. return valueThe single character version of this function returns the result of the conversion (an SJIS character value) or 0 if the translation of parameter c1 is not in the SJIS character set. Unicode Character Set Conversion
|