14 #ifndef __INCLUDED__SCOPIRA_TOOL_REGEX_H__ 15 #define __INCLUDED__SCOPIRA_TOOL_REGEX_H__ 16 #include <scopira/tool/platform.h> 17 #ifndef PLATFORM_win32 21 #if (GCC_VERSION_MAJOR<3) || (GCC_VERSION_MAJOR==3 && GCC_VERSION_MINOR<3) 24 #define __restrict_arr 31 #include <scopira/tool/array.h> 54 bool is_valid(
size_t idx)
const {
return dm_ary[idx].rm_so != -1; }
57 size_t begin(
size_t idx) {
return dm_ary[idx].rm_so; }
59 size_t end(
size_t idx) {
return dm_ary[idx].rm_eo; }
62 size_t size(
void)
const {
return dm_ary.
size(); }
68 std::string
substr(
const std::string &base,
size_t idx)
89 regex(
const std::string &pattern);
94 bool failed(
void)
const {
return !dm_valid; }
97 bool compile(
const std::string &pattern);
100 bool match(
const std::string &s)
const;
103 bool match(
const std::string &s,
regmatch &mat)
const;
113 void operator = (
const regex&);
Definition: archiveflow.h:20