Advantech VisionNavi User Manual page 79

Table of Contents

Advertisement

Regular expressions are shown below.
^
$
.
[...]
*
+
?
{n,m}
{n}
( )
¥
[Type (Type manipulation)]
Function name Overview
Test if the internal representation of a tuple is
is_int
of type integer.
Test whether the types of the elements of a
is_int_elem
tuple are of type integer.
is_mixed
Test whether a tuple is of type mixed.
Test if the internal representation of a tuple is
is_real
of type real.
Test whether the types of the elements of a
is_real_elem
tuple are of type real.
Test if the internal representation of a tuple is
is_string
of type string.
Test whether the types of the elements of a
is_string_elem
tuple are of type string.
type
Return the type of a tuple.
type_elem
Return the types of the elements of a tuple.
Match start of string.
Match end of string (a trailing newline is allowed).
Match any character except newline.
Match any character literal listed in the brackets.If the first charac-
ter is a '^', this matches any character except those in the list. You
can use the '-' character as in '[A-Z0-9]' to select character ranges.
Other characters lose their special meaning in brackets, except '
Allow 0 or more repetitions of preceding literal or group.
Allow 1 or more repetitions.
Allow 0 or 1 repetitions.
Allow n to m repetitions.
Allows exactly n repetitions.The repeat quantifiers above are
greedy by default, i.e. they attempt to maximize the length of the
match. Appending ? attempts to find a minimal match, e.g. +?.
Group a subpattern and creates a capturing group.
The substrings captured by this group will be stored separately.
Escapes any special symbol to treat it as a literal. Note that some
host languages like HDevelop and C/C++ already use the backs-
lash as a general escape character. In this case, '¥¥.' matches a lit-
eral dot while '¥¥¥¥' matches a literal backslash. Furthermore,
there are some special codes (the capitalized version of each
denoting the negation):
¥d,¥D Match a digit.
¥w,¥W Match a letter, digit or underscore.
¥s,¥S Match a white space character.
¥b,¥B Match a word boundary.
73
¥
Example of use
IsInt := is_int(T)
IsInt := is_int_elem(T)
IsMixed := is_mixed(T)
IsReal := is_real(T)
IsReal := is_real_elem(T)
IsString := is_string(T)
IsString :=
is_string_elem(T)
Type := type(T)
Types := type_elem(T)
VisionNavi User Manual
'.

Advertisement

Table of Contents
loading

Table of Contents