Pattern Search and Source Browsing
Related Topics:
Two modes of source code browsing are available through the Browsing Window.
Pattern Search
Pattern search searches for any text string (including text embedded in your comments) in the current directory or in the directories imported in the sb_init file (see Searching Multiple Directories).
Use pattern search when you:
- Want to do a quick search for a text string
- Do not have a source browsing database in the directory you want to search
- Do not want to graphically view function call relationships or class hierarchies
- Do not want to examine the data or member functions of a class
Pattern search uses grep syntax and searches all source code lines for a match to the string you type in the Pattern text box in Pattern Search Mode (see Searching for a Pattern). For more information, see also the regexp man page and Special Characters in Pattern Search and Source Browsing Modes.
Source Browsing
- Source Browsing responds to queries by searching in a database that contains information about the source files you are browsing. You can specify to have this database created when you create or edit your project or when you compile your source file with a source browsing compilation option.
Use Source Browsing Mode in the Browsing Window when you:
- Have created a source browsing database by adding a source browser option to your compilation command or your makefile (see Source Browsing Databases
- Want to search for language elements such as functions, classes, structs, unions, or records or their usage, definitions, or assignments
- Want to graphically view function call relationships or class hierarchies
- Want to examine the data or member functions of a class
If you modify the files with entries in the database, you must recompile them to get the most accurate information when using source browsing.
Browsing Multiple Directories is possible.