libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::filter::filter ( const i8 expr,
bool  icase,
bool  mode = true 
)

Object constructor.

Parameters
[in]exprthe filter expression
[in]icasetrue to ignore case on filtering, false otherwise
[in]modetrue to create a symbol filter, false to filter modules
Exceptions
csdbg::exception

Definition at line 57 of file filter.cpp.

References m_expr, csdbg::util::memset(), and set_expr().

57  :
58 m_mode(mode)
59 {
60  util::memset(&m_expr, 0, sizeof(regex_t));
61  set_expr(expr, icase);
62 }
static void * memset(void *, u8, u32)
Fill a memory block with a constant byte.
Definition: util.cpp:320
virtual filter & set_expr(const i8 *, bool)
Set the filter expression.
Definition: filter.cpp:96
bool m_mode
Filter type switch.
Definition: filter.hpp:31
virtual bool mode() const
Get the filter type.
Definition: filter.cpp:79
regex_t m_expr
Filter expression.
Definition: filter.hpp:29

+ Here is the call graph for this function: