Konsole
Konsole::RegExpFilter Class Reference
A filter which searches for sections of text matching a regular expression and creates a new RegExpFilter::HotSpot instance for them. More...
#include <Filter.h>

Classes | |
class | HotSpot |
Type of hotspot created by RegExpFilter. More... | |
Public Member Functions | |
virtual void | process () |
QRegExp | regExp () const |
RegExpFilter () | |
void | setRegExp (const QRegExp &text) |
Protected Member Functions | |
virtual RegExpFilter::HotSpot * | newHotSpot (int startLine, int startColumn, int endLine, int endColumn) |
Detailed Description
A filter which searches for sections of text matching a regular expression and creates a new RegExpFilter::HotSpot instance for them.Subclasses can reimplement newHotSpot() to return custom hotspot types when matches for the regular expression are found.
Definition at line 192 of file Filter.h.
Constructor & Destructor Documentation
RegExpFilter::RegExpFilter | ( | ) |
Member Function Documentation
RegExpFilter::HotSpot * RegExpFilter::newHotSpot | ( | int | startLine, | |
int | startColumn, | |||
int | endLine, | |||
int | endColumn | |||
) | [protected, virtual] |
Called when a match for the regular expression is encountered.
Subclasses should reimplement this to return custom hotspot types
Reimplemented in Konsole::UrlFilter.
Definition at line 397 of file Filter.cpp.
void RegExpFilter::process | ( | ) | [virtual] |
Reimplemented to search the filter's text buffer for text matching regExp().
If regexp matches the empty string, then process() will return immediately without finding results.
Implements Konsole::Filter.
Definition at line 356 of file Filter.cpp.
QRegExp RegExpFilter::regExp | ( | ) | const |
Returns the regular expression which the filter searches for in blocks of text.
Definition at line 348 of file Filter.cpp.
void RegExpFilter::setRegExp | ( | const QRegExp & | text | ) |
Sets the regular expression which the filter searches for in blocks of text.
Regular expressions which match the empty string are treated as not matching anything.
Definition at line 344 of file Filter.cpp.
The documentation for this class was generated from the following files: