# define named expressions for use in regular expressions:
# Define C name expression
#e c_n [[:alpha:]_][[:alnum:]_]*
# Define C comment expression
# Note: Does NOT allow comment to span lines
#e c_c (/\*.*\*/)
# Define single line comment
#e c_slc ({_w}*{c_c}{_w}*)*
# Define C name with pointer
#e c_np \**{c_n}
# Define C name with pointer or address
#e c_ni [\*&]*{c_n}
# Define C function type and name declaration
#e c_fname {c_n}({_w}+{c_np})*
# Define expression for first argument in function list
#e c_first_arg ({_w}*{c_ni})
# Define expression for remaining argument in function list
#e c_rem_arg ({_w}*,{c_first_arg})*
# Define C function argument list
#e c_arg_list \(({c_first_arg}{c_rem_arg})*\)
#
# Expression to find all C function definitions
^{c_fname}{c_arg_list}{c_slc}$
| #r replace-string-pattern |
Form 1 is used to specify a particular
replacement string for the previous search pattern. |
| #r #nn | Form 2 is used to specify default replacement
string number 'nn' for the previous search pattern. If nn == 0,
the null
string is used. If nn is greater than the number of default
replacement
strings, the last default replacement string is used. |
| #r #dr |
Form 3 is used to specify that the record
containing the matching string isto be deleted from the replacement
file. This operator may be used toselectively delete records from
the replacement file. Using this operator mimics the 'v' command
line option, but gives the user more control over which records are
deleted. |
| #r #nr |
Form 4 is used to specify that the record
containing the matching string is to be nulled in the replacement
file. In form 3, the entire record and end-of-record, EOR, string
are deleted from the
replacement file. This form deletes the record, but leaves the
EOR
string, thus nulling the record in the replacement file. |
| #r |
Form 5 is used to specify using the last default
replacement string as the replacement string for the previous search
pattern. See the '#d' operator below for specifying default
replacement strings. |
| [<0>] |
Replaced By Matched String |
| [<0,0>] |
Replaced By Matched String |
| [<i,j>] |
Replaced By Tagged String At Level i,
Count j 0 <= i <= 7 , 0 <= j <= 31 |
| [<0,j>] |
Replaced By Tagged String At Level 1,
Count j |
| [<i,0>] |
Replaced By Tagged String At Level i,
Count 1 |
| [<j>] |
Replaced By Tagged String At Level 1,
Count j |
| {_filename_} |
replaced by the name of the current input file |
| {_file_path_} |
replaced by the path of the current input file |
| {_file_ext_} |
replaced by the extension of the current input
file |
| {_file_drive_} |
replaced by the drive of the current input file (Note: under OS/2 Only) |
| 0 |
Normal White On Black |
| 1 |
High Intensity |
| 4 |
Underscore (Monochrome Display Only) |
| 5 |
Blink |
| 7 |
Reverse Video |
| 8 |
Invisible |
| 30 |
Black Foreground |
| 31 |
Red Foreground |
| 32 |
Green Foreground |
| 33 |
Yellow Foreground |
| 34 |
Blue Foreground |
| 35 |
Magenta Foreground |
| 36 |
Cyan Foreground |
| 37 |
White Foreground |
| 39 |
Default Foreground |
| 40 |
Black Background |
| 41 |
Red Background |
| 42 |
Green Background |
| 43 |
Yellow Background |
| 44 |
Blue Background |
| 45 |
Magenta Background |
| 46 |
Cyan Background |
| 47 |
White Background |
| 49 |
Default Background |