MPE/iX Intrinsics Reference Manual (32650-90905)

Chapter 9 571
Command Definitions (MAIL-PUTJCW)
NLTRANSLATE
4 Invalid length parameter
5 *NLS internal error
6 *NLS internal error
* Do not apply to calls with a
langnum
equal to 0 (NATIVE3000/XL).
transtable
character array (optional)
Passes a translation table in a 256 byte array. Each byte contains the
translation of the byte whose value is its index. This parameter
corresponds to
itemnum
s 13 and 14 of the NLINFO intrinsic. If present, the
langnum
parameter is ignored, and this routine is more efficient.
Operation Notes
This intrinsic performs the same function as CTRANSLATE, using native language tables.
The
inbuffer
parameter is translated into
outbuffer
for length of
bufferlength
, using a
translation table, and is determined as follows:
1. If
transtable
is present, a translation is made using
transtable
.
2. If
langnum
equals NATIVE3000/XL, a standard ASCII-to-EBCDIC or
EBCDIC-to-ASCII translation is made.
3. The ASCII-to-EBCDIC or EBCDIC-to-ASCII translation table for the language
specified is used.
Related Information
Intrinsics NLCOLLATE, NLKEYCOMPARE, NLREPCHAR,
NLSUBSTR
Manual Native Language Programmer's Guide