NET/MASTER Network Control Language (NCL) Reference Manual
VERIFY
Built-in Functions
106126 Tandem Computers Incorporated 4–103
VERIFY The VERIFY built-in function verifies that one or more characters in a string are also in
a specified reference string.
VERIFY(
string
,
reference
[ [,
option
] [,
start
] ] )
string
specifies the string to be verified. If a null string is supplied, the value returned is
0 (zero).
reference
specifies a string containing the acceptable characters. It is not necessary for all
characters that appear in
reference
to appear in the string; repeated characters
are redundant. If
reference
is null, and
option
is
m
(match), 0 (zero) is
returned. If
reference
is null, and
option
is
n
(no match), 1 is returned.
option
specifies an optional expression that can be used to change the behavior of the
VERIFY built-in function. The available options are
m
or
n
.
n
indicates no match. Returns the position of the first character in the string that
is not in
reference
.
m
indicates match. Returns the position of the first character in
string
that is
also in
reference
.
start
specifies the character position within
string
at which the verification is to start.
If specified, only characters from the specified start position to the end of
string
are verified. If omitted, verification starts at the beginning of
string
. If
start
specifies a character position beyond the end of the string, 0 (zero) is returned.
Considerations
The VERIFY built-in function verifies that
string
contains one or more of the
characters supplied in
reference
. If this is true, 0 (zero) is returned. If the string
contains other characters, the position of the first character in
string
that is not in
reference
is returned.
See also TYPECHK, which performs type checking on one or more strings.