34 #ifndef CA_MGM_POSIX_REGEX_HPP
35 #define CA_MGM_POSIX_REGEX_HPP
84 PosixRegEx(
const std::string ®ex,
int cflags = REG_EXTENDED);
132 bool compile(
const std::string ®ex,
133 int cflags = REG_EXTENDED);
234 const std::string &str,
265 std::vector<std::string>
capture(
const std::string &str,
305 std::string
replace(
const std::string &str,
306 const std::string &rep,
341 std::vector<std::string>
split (
const std::string &str,
371 std::vector<std::string>
grep (
const std::vector<std::string> &src,
399 bool match (
const std::string &str,
401 int eflags = 0)
const;
414 #endif // CA_MGM_POSIX_REGEX_HPP
bool execute(MatchArray &sub, const std::string &str, size_t index=0, size_t count=0, int eflags=0)
std::string m_error
Definition: PosixRegEx.hpp:407
std::string replace(const std::string &str, const std::string &rep, bool global=false, int eflags=0)
std::string errorString() const
std::vector< std::string > split(const std::string &str, bool empty=false, int eflags=0)
Definition: PosixRegEx.hpp:54
int m_ecode
Definition: PosixRegEx.hpp:406
bool match(const std::string &str, size_t index=0, int eflags=0) const
std::vector< std::string > grep(const std::vector< std::string > &src, int eflags=0)
regex_t m_regex
Definition: PosixRegEx.hpp:409
std::vector< match_t > MatchArray
Definition: PosixRegEx.hpp:68
std::vector< std::string > capture(const std::string &str, size_t index=0, size_t count=0, int eflags=0)
std::string m_rxstr
Definition: PosixRegEx.hpp:408
PosixRegEx & operator=(const PosixRegEx &ref)
std::string patternString() const
int m_flags
Definition: PosixRegEx.hpp:405
regmatch_t match_t
Definition: PosixRegEx.hpp:63
bool compiled
Definition: PosixRegEx.hpp:404
bool compile(const std::string ®ex, int cflags=1)
Definition: ByteBuffer.hpp:37