Guardian Programmer's Guide

Table Of Contents
Formatting and Manipulating Character Data
Guardian Programmer’s Guide 421922-014
19 - 51
Checking for Multibyte Character-Set Support
This subsection does not cover the procedures that were written primarily to support
other HP subsystems, although these procedures are nonprivileged and available to all
users. These procedures include:
The MBCS_CHARSTRING_ procedure used by the SCOBOL compiler for testing
a text string to see whether it contains only multibyte characters.
The MBCS_EXTERNAL_TO_TANDEM_ procedure used by SNAX and Pathway
for converting external multibyte character representation into the equivalent
internal character set.
The MBCS_TANDEM_TO_EXTERNAL_ procedure used by SNAX and Pathway to
convert internal multibyte character representation into an external character set.
The MBCS_FORMAT_ITI_BUFFER_ procedure used by SNAX to format line
records for specific display devices.
The MBCS_FORMAT_CRT_FIELD_ procedure used by SNAX to format line
records for specific display devices operating in block mode.
For details on these procedures, refer to the Guardian Procedure Calls Reference
Manual.
Checking for Multibyte Character-Set Support
Use the MBCS_CODESETS_SUPPORTED_ procedure to find out which multibyte
character sets your system supports:
RESULT := MBCS_CODESETS_SUPPORTED_;
The 32-bit result indicates which internal and external multibyte character sets are
supported; each supported character set is indicated by a 1 in the bit position:
If the result is zero, then there is no support for multibyte character sets.
bit 1 Tandem Kanji
bit 2 IBM Kanji
bit 3 IBM Kanji Mixed
bit 4 JEF (Fujitsu) Kanji
bit 5 JEF (Fujitsu) Kanji Mixed
bit 6 NEC Kanji
bit 7 JIS Kanji
bit 9 Tandem Hangul
bit 10 Chinese Big 5
bit 11 Chinese PC
bit 12 Tandem KSC5601