OldSchool Library
Character Code Conversion (ccc)

Macros

#define oslCccSJIStoUCS2   cccSJIStoUCS2
 Convert characters from Shift JIS encoding to UCS2 encoding.
 
#define oslCccGBKtoUCS2   cccGBKtoUCS2
 Convert characters from GBK encoding to UCS2 encoding.
 
#define oslCccKORtoUCS2   cccKORtoUCS2
 Convert characters from Korean encoding to UCS2 encoding.
 
#define oslCccBIG5toUCS2   cccBIG5toUCS2
 Convert characters from BIG5 encoding to UCS2 encoding.
 
#define oslCccUTF8toUCS2   cccUTF8toUCS2
 Convert characters from UTF-8 encoding to UCS2 encoding.
 
#define oslCccCodetoUCS2   cccCodetoUCS2
 Convert characters from a specified code page to UCS2 encoding.
 
#define oslCccSetErrorCharUCS2   cccSetErrorCharUCS2
 Set the error character for failed code conversions.
 
#define oslCccShutDown   cccShutDown
 Shutdown the Character Code Conversion Library.
 

Detailed Description

Functions for character code conversion using BenHur's intraFont library.

Macro Definition Documentation

◆ oslCccSJIStoUCS2

#define oslCccSJIStoUCS2   cccSJIStoUCS2

Convert characters from Shift JIS encoding to UCS2 encoding.

Parameters
dstOutput buffer for the converted string.
countSize of the output buffer.
strInput string in Shift JIS encoding.
cpCode page to use for conversion.
Returns
Number of converted character codes.

◆ oslCccGBKtoUCS2

#define oslCccGBKtoUCS2   cccGBKtoUCS2

Convert characters from GBK encoding to UCS2 encoding.

Parameters
dstOutput buffer for the converted string.
countSize of the output buffer.
strInput string in GBK encoding.
cpCode page to use for conversion.
Returns
Number of converted character codes.

◆ oslCccKORtoUCS2

#define oslCccKORtoUCS2   cccKORtoUCS2

Convert characters from Korean encoding to UCS2 encoding.

Parameters
dstOutput buffer for the converted string.
countSize of the output buffer.
strInput string in Korean encoding.
cpCode page to use for conversion.
Returns
Number of converted character codes.

◆ oslCccBIG5toUCS2

#define oslCccBIG5toUCS2   cccBIG5toUCS2

Convert characters from BIG5 encoding to UCS2 encoding.

Parameters
dstOutput buffer for the converted string.
countSize of the output buffer.
strInput string in BIG5 encoding.
cpCode page to use for conversion.
Returns
Number of converted character codes.

◆ oslCccUTF8toUCS2

#define oslCccUTF8toUCS2   cccUTF8toUCS2

Convert characters from UTF-8 encoding to UCS2 encoding.

Parameters
dstOutput buffer for the converted string.
countSize of the output buffer.
strInput string in UTF-8 encoding.
cpCode page to use for conversion.
Returns
Number of converted character codes.

◆ oslCccCodetoUCS2

#define oslCccCodetoUCS2   cccCodetoUCS2

Convert characters from a specified code page to UCS2 encoding.

Parameters
dstOutput buffer for the converted string.
countSize of the output buffer.
strInput string in the specified code page.
cpCode page to use for conversion.
Returns
Number of converted character codes.

◆ oslCccSetErrorCharUCS2

#define oslCccSetErrorCharUCS2   cccSetErrorCharUCS2

Set the error character for failed code conversions.

The error character is used when a code point cannot be converted to UCS2.

Parameters
codeNew error character (default: 0).
Returns
Previous error character.

◆ oslCccShutDown

#define oslCccShutDown   cccShutDown

Shutdown the Character Code Conversion Library.

This function cleans up any resources used by the Character Code Conversion Library.