strusBase
0.17
|
Class to search for a regular expression. More...
#include <regex.hpp>
Classes | |
struct | Match |
Public Member Functions | |
RegexSearch (const std::string &expression, int index, ErrorBufferInterface *errhnd_) | |
Constructor. More... | |
~RegexSearch () | |
Destructor. More... | |
Match | find (const char *begin, const char *end) const |
Execute the search. More... | |
int | match_start (const char *begin, const char *end) const |
Match the regex to the start of the source. More... | |
Class to search for a regular expression.
strus::RegexSearch::RegexSearch | ( | const std::string & | expression, |
int | index, | ||
ErrorBufferInterface * | errhnd_ | ||
) |
Constructor.
[in] | expression | regular expression string (POSIX) |
strus::RegexSearch::~RegexSearch | ( | ) |
Destructor.
Match strus::RegexSearch::find | ( | const char * | begin, |
const char * | end | ||
) | const |
Execute the search.
[in] | begin | pointer to the start of the string to search |
[in] | end | pointer to the end of the string to search |
int strus::RegexSearch::match_start | ( | const char * | begin, |
const char * | end | ||
) | const |
Match the regex to the start of the source.
[in] | begin | pointer to the start of the string to search |
[in] | end | pointer to the end of the string to search |