34 #ifndef CA_MGM_PERL_REGEX_HPP
35 #define CA_MGM_PERL_REGEX_HPP
86 PerlRegEx(
const std::string ®ex,
int cflags = 0);
141 bool compile(
const std::string ®ex,
269 const std::string &str,
274 const std::string &str,
305 std::vector<std::string>
capture(
const std::string &str,
344 std::string
replace(
const std::string &str,
345 const std::string &rep,
379 std::vector<std::string>
split (
const std::string &str,
408 std::vector<std::string>
grep (
const std::vector<std::string> &src,
436 bool match (
const std::string &str,
438 int eflags = 0)
const;
451 #endif // CA_MGM_PERL_REGEX_HPP
std::string m_error
Definition: PerlRegEx.hpp:444
int rm_eo
end offset of the regex match
Definition: PerlRegEx.hpp:68
int m_flags
Definition: PerlRegEx.hpp:442
int rm_so
start offset of the regex match
Definition: PerlRegEx.hpp:67
int m_ecode
Definition: PerlRegEx.hpp:443
std::string m_rxstr
Definition: PerlRegEx.hpp:445
std::string patternString() const
std::vector< std::string > grep(const std::vector< std::string > &src, int eflags=0)
PerlRegEx & operator=(const PerlRegEx &ref)
std::vector< std::string > split(const std::string &str, bool empty=false, int eflags=0)
std::vector< match_t > MatchArray
POSIX RegEx like match array with captured substring offsets.
Definition: PerlRegEx.hpp:72
Definition: PerlRegEx.hpp:55
bool execute(MatchVector &sub, const std::string &str, size_t index=0, size_t count=0, int eflags=0)
std::string replace(const std::string &str, const std::string &rep, bool global=false, int eflags=0)
POSIX RegEx like structure for captured substring offset pair.
Definition: PerlRegEx.hpp:66
pcre * m_pcre
Definition: PerlRegEx.hpp:441
bool compile(const std::string ®ex, int cflags=0)
bool match(const std::string &str, size_t index=0, int eflags=0) const
std::vector< std::string > capture(const std::string &str, size_t index=0, size_t count=0, int eflags=0)
std::vector< int > MatchVector
Definition: PerlRegEx.hpp:63
std::string errorString() const
Definition: ByteBuffer.hpp:37