HPlogo 900 Series HP 3000 Computer Systems: MPE/iX Intrinsics Reference Manual > Chapter 4 Command Definitions

NLJUDGE

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

NM and CM callable.

Judges whether a character is a 1 byte or 2 byte Asian character.

Syntax

     I16V            I16V      CA       I16V

   n2bytes:=NLJUDGE(langnum,instring,stringlength,

                    CA  U16A  U16A

                    flags,error,charset);

Functional Return

n2bytes

16-bit signed integer (assigned functional return)

Contains the number of 2 byte Asian characters in a 16-bit signed integer value that can be used to check a string of characters for Asian characters.

Parameters

langnum

16-bit signed integer by value (required)

Contains the language ID number.

instring

character array (required)

Contains the string of characters to be judged.

stringlength

16-bit signed integer by value (required)

Specifies the number of bytes in instring.

flags

character array (required)

Contains one of the following values (ASCII characters):

ValueMeaning
01 byte character
1First byte of a 2 byte character
2Second byte of a 2 byte character
3Invalid Asian character

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 is not configured
3Invalid string length
4Not returned
5*NLS internal error
6*NLS internal error
7*Invalid characters found in instring

* Do not apply to calls with langnum equal to 0 (NATIVE-3000).

charset

16-bit unsigned integer array (optional)

Contains the character set definition for the language to be used, as returned by itemnum=12 of NLINFO.

Related Information

Intrinsics

NLCOLLATE, NLKEYCOMPARE, NLREPCHAR, NLSCANMOVE, NLSWITCHBUF, NLSTRANSLATE

Commands

None

Manuals

Native Language Programmer's Guide (32650-90022)

Feedback to webmaster