Guardian Programming Reference Summary for C

Functions Summary (G-N)
Guardian Programming Reference Summary for C522630-001
6-25
charset
MBCS_SHIFTSTRING_
Upshifts or downshifts all alphabetic characters in a multibyte character set (MBCS)
string.
MBCS_TANDEM_TO_EXTERNAL_
Translates a text string from Tandem internal format to a specified external text format.
return value:
1 = Tandem Kanji
9 = Tandem Hangul
10 = Tandem Chinese Big 5
11 = Tandem Chinese PC
12 = Tandem KSC5601
#include <cextdecs(MBCS_SHIFTSTRING_)>
void MBCS_SHIFTSTRING_ ( char *bytestring /* i */
,short bytecount /* i */
,short casebit /* i */
,[ short charset ] /* i */
,[ short *charinfo ] );/* o */
#include <cextdecs(MBCS_TANDEM_TO_EXTERNAL_)>
short MBCS_TANDEM_TO_EXTERNAL_
( [ long *source-string ] /* i,o */
,[ long *destination-string ] /* i,o */
,short source-length /* i */
,short *maximum-length /* i,o */
,[ short intermediate ] /* i */
,short external-form /* i */
,[ short *finished-length ] /* o */
,[ char *shift-to-MBCS ] /* i */
,[ char *shift-to-one-byte ] );/* i */
0 = Successful completion of the translation
-1 = Translation truncated due to lack of destination buffer space
-2 = Unknown translation requested
-3 = Invalid source-string length