Searching Functions
symbol
contains a Symbol record. See “Symbol Record” on page 382.
SymbolRootContainer (symbol)
Returns the root, or left-most component of the symbol's name. symbol
contains a Symbol record. See “Symbol Record” on page 382.
Every symbol name is divided into path components, which are separated by dot (.) characters. For example, a symbol name might be "myclass.member1". In this example, "member1" is contained by "myclass".
SymbolStructureType (symbol)
Returns a Symbol record of the structural type of the given symbol. The structural type is the struct or class type of the symbol, which may be indirectly referenced through typedefs.
symbol
contains a Symbol record. See “Symbol Record” on page 382.
Searching Functions
These functions search for references to words and patterns.
GetSourceLink (hbufSource, lnSource)
Returns the destination of a source link in a Link record. The source buffer is hbufSource and the source line
number is lnSource. If the given line does not contain a source link, then an empty string is returned. See
“Link Record” on page 380.
The destination link points to a location in some file at some line number. This source link information links two arbitrary locations. For example, the Search Results buffer contains source links for each line that matches the search pattern.
LoadSearchPattern(pattern, fMatchCase, fRegExp, fWholeWordsOnly)
Loads the search pattern used for the Search, Search Forward, and Search Backward commands.
The search pattern string is given in pattern.
If fMatchCase, then the search is case sensitive.
If fRegExpr, then the pattern contains a regular expression. Otherwise, the pattern is a simple string.
If fWholeWordsOnly then only whole words will cause a match.
ReplaceInBuf(hbuf, oldPattern, newPattern, lnStart, lnLim, fMatchCase, fRegExp, fWholeWordsOnly, fConfirm)
Performs a search and replace operation in the given buffer.
The search pattern string is given in oldPattern.
The replacement pattern string is given in newPattern.
The line range is specified by lnSart to lnLim. The replacements only take place on lines lnStart up to lnLim -
1.
If fMatchCase, then the search is case sensitive.
If fRegExpr, then the pattern contains a regular expression. Otherwise, the pattern is a simple string.
If fWholeWordsOnly then only whole words will cause a match.
If fConfirm then the user will be prompted before each replacement.
404 Source Insight 4 User Guide