1 #ifndef REGEX_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 2 #define REGEX_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM 4 #if defined(_MSC_VER) || (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 26 RegEx(
char a,
char z);
38 template <
typename Source>
bool Matches(
const Source& source)
const;
42 template <
typename Source>
int Match(
const Source& source)
const;
47 template <
typename Source>
bool IsValidSource(
const Source& source)
const;
48 template <
typename Source>
int MatchUnchecked(
const Source& source)
const;
50 template <
typename Source>
int MatchOpEmpty(
const Source& source)
const;
51 template <
typename Source>
int MatchOpMatch(
const Source& source)
const;
52 template <
typename Source>
int MatchOpRange(
const Source& source)
const;
53 template <
typename Source>
int MatchOpOr(
const Source& source)
const;
54 template <
typename Source>
int MatchOpAnd(
const Source& source)
const;
55 template <
typename Source>
int MatchOpNot(
const Source& source)
const;
56 template <
typename Source>
int MatchOpSeq(
const Source& source)
const;
67 #endif // REGEX_H_62B23520_7C8E_11DE_8A39_0800200C9A66_PM
int MatchOpRange(const Source &source) const
friend RegEx operator&&(const RegEx &ex1, const RegEx &ex2)
int MatchOpMatch(const Source &source) const
int MatchUnchecked(const Source &source) const
friend RegEx operator||(const RegEx &ex1, const RegEx &ex2)
int MatchOpOr(const Source &source) const
int MatchOpNot(const Source &source) const
friend RegEx operator+(const RegEx &ex1, const RegEx &ex2)
int Match(const std::string &str) const
friend RegEx operator!(const RegEx &ex)
int MatchOpSeq(const Source &source) const
std::vector< RegEx > m_params
bool IsValidSource(const Source &source) const
int MatchOpAnd(const Source &source) const
bool Matches(char ch) const
int MatchOpEmpty(const Source &source) const