The following routines do character-based code conversion on the GB-2312-80 character set. They convert characters and strings between EUC format and GB-2312-80 format. To use these routines, the library libcle must be linked using the C compiler option -lcle. For further information, see the cconv(3x) man page.
Table A-5 Simplified Chinese Character-Based Functions
Function |
Description |
---|---|
cgbtoeuc |
Converts a character in GB-2312-80 format (7 bit) to EUC format |
scgbtoeuc |
Converts a string in GB-2312-80 format (7 bit) to EUC format |
sncgbtoeuc |
Converts part of a string in GB-2312-80 format (7 bit) to EUC format |
euctocgb |
Converts a character in EUC format to GB-2312-80 format (7 bit) |
seuctocgb |
Converts a string in EUC format in GB-2312-80 format (7 bit) |
sneuctocgb |
Converts a part of a string in EUC to GB-2312-80 format (7 bit) |