The open and close tags are also regular expression strings. So it is needed to define the open and close tags with
\( and
\). I tried that with your expressions, but it completely failed on my C file.
Well, your function regular expression string
^(?:\w+[ \t]+)+(\w+)[ \t]*\((?s:.+)\)[ \t\n]+\{ fails on my C file which is an ASCII DOS file. All my functions have a line comment after closing
) which shortly describes what the function is for, or a block comment starts on the same line as the function definition if the short description is a little bit longer or the function has more parameters. The first 4 characters of the comment are constant and exist only on the function definition lines which is the reason why I can use a very simple single UltraEdit regular expression string to find function names. I more or less just search for lines with those 4 characters. My C file (for C166 controller) starts with
- Code: Select all
static BITS mb_Sendnow _atbit(mg_Faultbits,0); //MVD: TRUE wenn gerade eine Uebertragung laueft
// and some other static bits and values.
_inline void il_startaborttime (void) //UPH: startet das Abbruchtimeout laut Parametrierung
{
mg_Faulttimer = mg_Aborttime;
mb_Waitnow = TRUE;
}
Your Perl function string executed with the Find dialog selected everything from the static bit definition down to line 1461 (75 KB). That might be different for your C/C++ files, but this expression for the function strings is definitely not useful for my C file and therefore I can't really look deeper into the problem with the arguments.