listFunctions
listFunctions(t_pattern[g_listAllFuncs] ) =>l_functions/nil
Description
Returns all public function names that contain the given substring or match the given regular expression. If the second (optional) argument is specified as t (or a non-nil value), listFunctions looks at the SKILL virtual machine, rather than the cdsFinder database, and returns all isCallable Cadence public functions and user-defined SKILL functions that contain the given substring or match the given regular expression.
By default, the source of the returned values is the SKILL directory in the SKILL Finder database, which is located in the doc hierarchy under your_install_dir/doc/finder/SKILL. listFunctions will also look in the your_install_dir/local/finder/SKILL directory, as well as directories specified in CDS_FINDER_PATH for any personal functions you may have created and placed there in the appropriate SKILL Finder format. For usage of CDS_FINDER_PATH, see
The returned function names can be used for passing a list of function names that match a given pattern to another function.
Arguments
Value Returned
Examples
Calls the tracef function with all the functions that contain the substring hi.
apply( 'tracef listFunctions( "hi" ))
Calls the tracef function with all isCallable Cadence public and user-defined functions that contain the substring x
apply( 'tracef listFunctions( "x" t ))
Lists all the functions that begin with hi
listFunctions("^hi")
Lists all the functions that begin with db and have Copy in their names.
listFunctions("^db.*Copy")
Related Topics
Return to top