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;
62 regex(std::string
const &pattern,
int flags = normal);
71 void assign(std::string
const &pattern,
int flags = normal);
79 std::string str()
const;
83 unsigned mark_count()
const;
91 bool match(
char const *begin,
char const *end,
int flags = 0)
const;
100 bool match(
char const *begin,
char const *end,std::vector<std::pair<int,int> > &marks,
int flags = 0)
const;
108 bool search(
char const *begin,
char const *end,
int flags = 0)
const;
117 bool search(
char const *begin,
char const *end,std::vector<std::pair<int,int> > &marks,
int flags = 0)
const;
119 static bool utf8_supported();
127 static const int perl = 0;
128 static const int normal = 0;
129 static const int icase = 0x100;
130 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