MPE/iX Quick Reference Guide (32650-90881)

106 Chapter3
Intrinsics Descriptions
Descriptions of the Intrinsics Available in MPE/iX
NLCONVCUSTDATE
NM and CM callable.
Converts the custom date format from a character string to a numeric value; checks the
input string by using the formatting template returned by item 2 of the NLINFO intrinsic,
then converts the date to the general date format as returned by the CALENDAR intrinsic.
U16 CA I16V I16V U16A
date
:=NLCONVCUSTDATE(
buffer,bufferlength,langnum,error
);
NLCONVNUM
NM and CM callable.
Converts native language numbers with native decimal and thousands separators to an
ASCII number with NATIVE-3000 decimal and thousands separators. Optionally, the
decimal and thousands separators can be removed.
I16V CA I16V CA I16V U16V
NLCONVNUM(
langnum,instring,inlength,outstring,outlength,error
,
U16V U16V U16V O-V
numspec,fmtmask,decimals
);
NLFINDSTR
NM and CM callable.
Searches
string1
for
string2
, and returns an integer value indicating the offset in
string1
where
string2
was found.
I16 I16V CA I16V CA I16V U16A U16A
offset
:=NLFINDSTR(
langnum,string1,length1,string2,length2,error
,
charset
);
NLFMTCALENDAR
NM and CM callable.
Formats the date according to language-dependent templates. The formatting is done
according to the template returned by
itemnum
= 1 of the NLINFO intrinsic.
U16V CA I16V U16A
NLFMTCALENDAR(
date,buffer,langnum,error
);
NLFMTCLOCK
NM and CM callable.
Formats the time of day, in the speciļ¬ed language, obtained with the CLOCK intrinsic.
I32V CA I16V U16A
NLFMTCLOCK(
time,buffer,langnum,error
);
NLFMTCUSTDATE
NM and CM callable.