MPE/iX Intrinsics Reference Manual (32650-90875)
566 Chapter9
Command Definitions (MAIL-PUTJCW)
NLSWITCHBUF
NLSWITCHBUF
NM and CM callable.
Converts a string of characters from phonetic order to screen order or from screen order to
phonetic order.
Syntax
I16V CA CA
NLSWITCHBUF(
langnum,instring,outstring,
I16V U16V U16A
stringlength,left-to-right,error
);
Parameters
langnum
16-bit signed integer by value (required)
Contains the language ID number.
instring
character array (required)
Contains the string, in phonetic order, to be converted to screen order.
outstring
character array (required)
Contains the string after conversion.
Outstring
and
instring
can
reference the address.
stringlength
16-bit signed integer by value (required)
Contains the length, in bytes, of the string to be converted.
left-to-right
16-bit unsigned integer by value (required)
Specifies whether the implied primary mode of the data (if displayed on a
terminal) is left-to-right (true) or right-to-left (false), determining which
language it is and which strings of characters to switch.
error
16-bit unsigned integer array (required)
Returns two elements: the first element is the error number; the second
element is reserved and always returns 0. The possible error number
values are:
Value Meaning
0
Successful
1 *NLS not installed
2 *Specified language not configured
3 Invalid string length
4 Not returned