6 RegEx::RegEx(): m_op(REGEX_EMPTY
)
10 RegEx::RegEx(REGEX_OP op
): m_op(op
)
14 RegEx::RegEx(char ch
): m_op(REGEX_MATCH
), m_a(ch
)
18 RegEx::RegEx(char a
, char z
): m_op(REGEX_RANGE
), m_a(a
), m_z(z
)
22 RegEx::RegEx(const std::string
& str
, REGEX_OP op
): m_op(op
)
24 for(std::size_t i
=0;i
<str
.size();i
++)
25 m_params
.push_back(RegEx(str
[i
]));
28 // combination constructors
29 RegEx
operator ! (const RegEx
& ex
)
32 ret
.m_params
.push_back(ex
);
36 RegEx
operator || (const RegEx
& ex1
, const RegEx
& ex2
)
39 ret
.m_params
.push_back(ex1
);
40 ret
.m_params
.push_back(ex2
);
44 RegEx
operator && (const RegEx
& ex1
, const RegEx
& ex2
)
47 ret
.m_params
.push_back(ex1
);
48 ret
.m_params
.push_back(ex2
);
52 RegEx
operator + (const RegEx
& ex1
, const RegEx
& ex2
)
55 ret
.m_params
.push_back(ex1
);
56 ret
.m_params
.push_back(ex2
);