Searching for a Function

This option is complementary to the preceding one. It is useful when you are uncertain of the function name you are searching. To search using regular expressions, select the "Function" option from the "Search" menu.

The following dialog box appears:

 

You can reach this dialog box by using the ‘Search a function’ option from the ‘Search’ menu bar.

 

The list of all functions defined in all loaded files appears at the left, sorted by name. If you double-click on a function name, the dialog box will close and the cursor will be placed where the function is defined. The prototype of the selected function is shown at the lower right.

If you double-click on the list of files in the center-right, Wedit will open a new list with all of the functions defined in that file.

You can indicate a filter in the entry field at the center. This filter can be a regular expression. After the filter is applied, if any functions are found, they will be shown within the list of selected functions. For instance, to find all functions that begin with a capital 'C', the regular expression will be "^C.+"

The ‘Include *.c’ button at the upper right instructs the search engine to look for all files in the current directory (that end with .c) and not only in the loaded files.