Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (M)
Guardian Procedure Calls Reference Manual522629-013
9-8
MBCS_CHARSIZE_ Procedure
MBCS_CHARSIZE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
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
Syntax for TAL Programmers
Parameters
result returned value
INT
is the size in bytes of each character in the MBCS specified by the
charset
parameter.
0 indicates that either no MBCS is configured or the specified MBCS is
not supported.
nonzero indicates that the
result parameter contains the following
information:
<0:7> contains the display size (in columns) of the multibyte
character identified by the test.
<8:15> contains the internal size (in bytes) of the multibyte
character identified by the test.
#include <cextdecs(MBCS_CHARSIZE_)>
short MBCS_CHARSIZE_ ( [ short charset ] );
result := MBCS_CHARSIZE_ [ ( charset ) ]; ! i