MPE/iX Intrinsics Reference Manual (32650-90905)
Chapter 9 555
Command Definitions (MAIL-PUTJCW)
NLMATCHINIT
NLMATCHINIT
Compiles a pattern into a form for use with the NLMATCH intrinsic.
Syntax
I BA I
result
:= NLMATCHINIT(
pattern
,
pattern_len
,
IV BA I
langid
,
comp_pattern
,
comp_buf_size
);
Functional Return
Zero is returned if the compilation of
pattern
is successful. Otherwise the
result
contains
the error code.
Parameters
pattern
Byte array (required)
A byte array containing the pattern to be compiled. Leading and training
spaces are ignored.
A pattern consists of a series of special characters that indicate the type of
data to be selected. These characters are:
Char Selected
a Uppercase, lowercase, or 16-bit Asian character
u Uppercase alphabetic character
l Lowercase alphabetic character
b Blank (space)
d Digits, as defined in the NLS character attribute table
result Integer Error Meaning
001 NLS is not installed
002 The specified language is not configured
101 Missing "]" or "}" operators
102 Expecting alpha symbols
104 Incomplete
pattern
specified
105 Bad range operation specified
203 Pattern too big
900 Internal state machine error