3 /* C++ wrapper around the POSIX regex functions:
4 regcomp, regexec, regerror, regfree.
23 LRegex(string const & regex);
29 typedef std::pair<string::size_type, string::size_type> MatchPair;
32 typedef std::vector<MatchPair> SubMatches;
34 /// Returns all the matches in a vector
35 SubMatches const & exec(string const & str) const;
37 /// The whole of str matches regex.
38 bool exact_match(string const & str) const;
41 MatchPair const first_match(string const & str) const;
44 string const getError() const;
47 int getErrorCode() const;
49 /// Will the next operation fail of not.