Regexp class.
Class Regexp wraps regexp structure and associated library functions.
Definition at line 43 of file Regexp.h.
int Regexp::match |
( |
const char * |
text_ | ) |
|
Match an ASCII character string agains the pattern this class wraps.
- Parameters
-
text_ | Input text to match against the pattern. |
- Returns
- 0 if text_ matches the pattern; -1 if not.
regexec(3) returns zero for a successful match or REG_NOMATCH for failure.
Definition at line 58 of file Regexp.cpp.
References DL, m_compiled_pattern, m_error_msg, m_pattern, ASSA::REGEXP, and trace_with_mask.
Referenced by ASSA::IniFile::load(), and ~Regexp().
74 DL((
REGEXP,
"regexec(\"%s\") = %d\n", text_, ret));
79 return (ret == 0 ? 0 : -1);
#define DL(X)
A macro for writing debug message to the Logger.
#define trace_with_mask(s, m)
trace_with_mask() is used to trace function call chain in C++ program.
regex_t * m_compiled_pattern