73
VisionNavi User Manual
Chapter 2
Tool
Regular expressions are shown below.
[Type (Type manipulation)]
^
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.
{n,m}
Allow n to m repetitions.
{n}
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.
Function name Overview
Example of use
is_int
Test if the internal representation of a tuple is
of type integer.
IsInt := is_int(T)
is_int_elem
Test whether the types of the elements of a
tuple are of type integer.
IsInt := is_int_elem(T)
is_mixed
Test whether a tuple is of type mixed.
IsMixed := is_mixed(T)
is_real
Test if the internal representation of a tuple is
of type real.
IsReal := is_real(T)
is_real_elem
Test whether the types of the elements of a
tuple are of type real.
IsReal := is_real_elem(T)
is_string
Test if the internal representation of a tuple is
of type string.
IsString := is_string(T)
is_string_elem
Test whether the types of the elements of a
tuple are of type string.
IsString :=
is_string_elem(T)
type
Return the type of a tuple.
Type := type(T)
type_elem
Return the types of the elements of a tuple.
Types := type_elem(T)
Содержание VisionNavi
Страница 1: ...User Manual VisionNavi...
Страница 6: ...VisionNavi User Manual vi...
Страница 8: ...VisionNavi User Manual 16...
Страница 9: ...Chapter 1 1 Outline of inspection...
Страница 22: ...VisionNavi User Manual 14...
Страница 23: ...Chapter 2 2 Tool...
Страница 24: ...VisionNavi User Manual 18 2 1 Tool Description List A list of tools that can be selected...
Страница 95: ...89 VisionNavi User Manual Chapter 2 Tool...