8 #ifndef BOOSTER_PERL_REGEX_H 9 #define BOOSTER_PERL_REGEX_H 11 #include <booster/config.h> 12 #include <booster/copy_ptr.h> 15 #include <booster/backtrace.h> 37 typedef char value_type;
59 regex(std::string
const &pattern,
int flags = normal);
68 void assign(std::string
const &pattern,
int flags = normal);
76 std::string str()
const;
80 unsigned mark_count()
const;
88 bool match(
char const *begin,
char const *end,
int flags = 0)
const;
97 bool match(
char const *begin,
char const *end,std::vector<std::pair<int,int> > &marks,
int flags = 0)
const;
105 bool search(
char const *begin,
char const *end,
int flags = 0)
const;
114 bool search(
char const *begin,
char const *end,std::vector<std::pair<int,int> > &marks,
int flags = 0)
const;
121 static const int perl = 0;
122 static const int normal = 0;
123 static const int icase = 0x100;
124 static const int utf8 = 0x200;
This is a simple wrapper of PCRE library.
Definition: perl_regex.h:35
Exception that is thrown in case of creation of invalid regex.
Definition: perl_regex.h:21
Same as std::runtime_error but records stack trace.
Definition: backtrace.h:158
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23