# SUBSYSTEM OVERVIEW

Utility Native Language (UNL) Subsystem

The UNL subsystem provides support for converting between different standards of foreign language characters. There are currently five standards supported. These are JIS 208, JIS 212, Unicode, Shift JIS, and EUC. The information in these five standards is contained in three tables created by unl_Initialize which should be called after pdx_Initialize and before any other unl_... functions. The other two standards, EUC and Shift JIS, are based upon conversion algorithms. The JIS 208 and JIS 212 tables contain incompatible information so no conversions, direct or indirect, should ever be made between them. Following is a list of public functions contained in the UNL subsystem.

# FUNCTIONS

unl_Initialize

Initialize the unl data structures so comparisons may be made

unl_EucToJis208

Convert from EUC standard to JIS 208 standard

unl_EucToJis212

Convert from EUC standard to JIS 212 standard

unl_Jis208ToEuc

Convert from JIS 208 standard to EUC standard

unl_Jis212ToEuc

Convert from JIS 212 standard to EUC standard

unl_JisToShift

Convert from JIS standard to Shift JIS standard

unl_JisToUnicode

Convert from JIS standard to Unicode standard

unl_ShiftToJis

Convert from Shift JIS standard to JIS standard

unl_UnicodeToJis

Convert from Unicode standard to JIS standard

unl_Terminate

Termination module for the UNL subsystem

There is not direct support for all conversions. For instance, there is no direct conversion between EUC and Shift JIS or EUC and Unicode. In these cases JIS should be used as the middle-man for all conversions. Therefore if EUC was to be converted to Unicode, the application would first use unl_EucToJis208 or unl_EucToJis212 and then unl_JisToUnicode. For more information on the above functions read their manual pages. unl_Terminate should be called after all other unl_... functions and before a call to pdx_Terminate.