MPE/iX Intrinsics Reference Manual (32650-90905)

556 Chapter9
Command Definitions (MAIL-PUTJCW)
NLMATCHINIT
? Any character
Other metacharacter indicate choice, grouping, and ranges:
Char Selected
!
Transparency
, Choice
: Range
{} Grouping
[] Optional
+ Repetition (one or more)
* Repetition (zero or more)
Pattern operators are evaluated in the following order, where x and y are
any character for the language:
The repetition, concatenation, and choice operators can be used with
patterns. For instance: x,y are any pattern in this case.
pattern_len
Integer (required)
Length, in bytes, of the
pattern
to be compiled.
langid
Integer by value (required)
The language ID number of the language to be used in compiling the
pattern
.
comp_pattern
Byte array (required)
A byte array specifying where the compiled
pattern
is to be constructed.
comp_buf _size
Integer (required)
The length of the
comp_pattern
, in bytes, available for constructing the
compiled
pattern
.
Operation Notes
NLMATCHINIT converts the regular expression in
pattern
to a reduced, finite state machine
and places it in
comp_pattern
, where
pattern_len
is the expression's length in bytes, and
comp_buf_size
is the maximum size of the
comp_pattern
in bytes.
Char Operation Example
! Transparency !x
: Range x:y
+/* Repetition (1/0 or more) x+ or x*
Concatenation xy
, Choice x,y