Guardian Programming Reference Summary for pTAL and TAL

Procedure Calls Summary (G-N)
Guardian Programming Reference Summary for pTAL and TAL522631-001
6-34
MBCS_TESTBYTE_
Returns the identification of a specified byte contained within a text string of mixed
data.
-5 Control string parameter too long
-6 Translation truncated due to lack of space in screen field
29 Required parameter missing
source-string, INT(32) .EXT:ref:1 input, output
destination-string, INT(32) .EXT:ref:1 input, output
source-length, INT:value input
maximum-length, INT .EXT:ref:1 input, output
intermediate, INT:value input
external-form, INT:value input
0 IBM Kanji only (without subfield strings)
1 IBM Kanji EBCDIC
2 IBM Kanji/Katakana-EBCDIC
3 JEF (Fujitsu) Kanji only
4 JEF (Fujitsu) Kanji EBCDIC
5 JEF (Fujitsu) Kanji/Katakana-EBCDIC
6 NEC Kanji only (not implemented)
7 NEC Kanji/JIS X0201 (not implemented)
8 JIS X0208 Kanji/JIS X0201 (was C6226/C6220)
finished-length, INT .EXT:ref:1 output
shift-to-DBCS, STRING .EXT:ref:* input
shift-to-one-byte, STRING .EXT:ref:* input
result := MBCS_TESTBYTE_ ( buffer
,bytecount
,testindex
,[ charset ]
,[ charinfo ] );
result, INT:value output