HPlogo MPE/iX Intrinsics Reference Manual > Chapter 9 Command Definitions (MAIL-PUTJCW)

NLREPCHAR

MPE documents

Complete PDF
Table of Contents
Index

Edition 7 E0701 ♥
Edition 7 E0300
Edition 6 E0195

NM and CM callable.

Replaces all nondisplayable control characters in the string with the replacement character. Nondisplayable characters are those with attribute 3 (undefined graphic character) or 5 (control code), as returned by itemnum=12 of the NLINFO intrinsic.

Syntax



             CA        CA         I16V
  NLREPCHAR (inbuffer, outbuffer, bufferlength,
             CV           I16V     U16A   U16A
             replacechar, langnum, error, charset);

Parameters


inbuffer

character array (required)

Passes the nondisplayable characters to be replaced.

outbuffer

character array (required)

Returns the replaced character string.

bufferlength

16-bit signed integer by value (required)

Passes the length, in bytes, of inbuffer.

replacechar

character by value (required)

Contains the replacement character to be used.

langnum

16-bit signed integer by value (required)

Contains the language ID number.

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:

ValueMeaning
0Successful
1*NLS not installed
2*Specified language not configured
3Invalid replacement character
4Invalid length parameter
5*NLS internal error
6*NLS internal error
7Invalid charset table entry
8Overlapping strings, outbuffer overwrites inbuffer

* Does not apply to calls with a langnum equal to 0 (NATIVE3000/XL).

charset

16-bit unsigned integer array (optional)

Passes the character set definition for the language used, as returned in NLINFO itemnum= 12. If this parameter is present, langnum is ignored, and this intrinsic is more efficient.

Related Information


Intrinsics NLCOLLATE, NLCOLLATE2, NLFINDSTR, NLJUDGE, NLKEYCOMPARE, NLSCANMOVE, NLSUBSTR, NLSWITCHBUF, NLTRANSLATE
Manuals Native Language Programmer's Guide




NLNUMSPEC


NLSCANMOVE