plis::Regexp Class Reference

#include <plis_regexp.h>

List of all members.

Public Member Functions

 Regexp (const char *rege, const char *flag_string="")
int match (const std::string &targ)
 match a regular expression string
int groups ()
 Returns number of substrings in the last match operation.
Range getgroup (int n) const
 Get a group from the last match operation.


Detailed Description

A C++ wrapper for the PCRE engine. It is used internally by the plis library for handling regular expressions.


Constructor & Destructor Documentation

plis::Regexp::Regexp const char *  rege,
const char *  flag_string = ""
[inline]
 

The constructor takes a regexp string as input and immediately compiles it. The compiled version will be saved until the class is destroyed.


The documentation for this class was generated from the following file:
plis - Perl Like Structures