Guardian Procedure Calls Reference Manual

MBCS_CHARSIZE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Returned Value
Related Programming Manual
Summary
The MBCS_CHARSIZE_ procedure returns the display size (in columns) and the storage size (in
bytes) of multibyte character set (MBCS) characters from the character set specified by the charset
parameter.
The storage size of all supported internal MBCSs has a 1:1 relationship to the number of display
columns required; thus, a 20-byte string of HP Kanji characters requires 20 columns of display
space on a terminal or printer.
Syntax for C Programmers
#include <cextdecs(MBCS_CHARSIZE_)>
short MBCS_CHARSIZE_ ( [ short charset ] );
Syntax for TAL Programmers
result := MBCS_CHARSIZE_ [ ( charset ) ]; ! i
Parameter
charset
input
INT:value
identifies the multibyte character set (MBCS) to be used. If charset is omitted or null, the
default MBCS identifier returned from the MBCS_DEFAULTCHARSET_ is used. These MBCSs
are supported by the MBCS_CHAR_ procedure:
HP Kanji1
HP Hangul9
HP Chinese Big 510
HP Chinese PC11
HP KSC560112
Returned Value
INT
Size (in bytes) of each character in the MBCS specified by the charset parameter or 0.
Either no MBCS is configured or the specified MBCS is not supported.0
The result parameter contains this information:nonzero
MBCS_CHARSIZE_ Procedure 789