Home |
HMI (Human-Machine Interface) Classes Unicode Character Set Conversion Function SJISToUnicode |
Function SJISToUnicodeFunction SJISToUnicode converts an SJIS character or string to Unicode: PEGCHAR SJISToUnicode(PEGCHAR c1); void SJISToUnicode(PEGCHAR * s1, const PEGCHAR * s2); Parametersc1Single 16-bit SJIS 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 SJIS characters to convert. return valueThe single character version of this function returns the result of the conversion (a Unicode character value) or 0 if parameter c1 is not a valid SJIS character value. Unicode Character Set Conversion
|