#include <regex.h>
Public Member Functions | |
| int | Match (const std::string &str) const |
| int | Match (const Stream &in) const |
| template<typename Source > | |
| int | Match (const Source &source) const |
| bool | Matches (char ch) const |
| bool | Matches (const std::string &str) const |
| bool | Matches (const Stream &in) const |
| template<typename Source > | |
| bool | Matches (const Source &source) const |
| RegEx () | |
| RegEx (char ch) | |
| RegEx (char a, char z) | |
| RegEx (const std::string &str, REGEX_OP op=REGEX_SEQ) | |
| ~RegEx () | |
Private Member Functions | |
| template<typename Source > | |
| bool | IsValidSource (const Source &source) const |
| template<> | |
| bool | IsValidSource (const StringCharSource &source) const |
| template<typename Source > | |
| int | MatchOpAnd (const Source &source) const |
| template<typename Source > | |
| int | MatchOpEmpty (const Source &source) const |
| template<> | |
| int | MatchOpEmpty (const StringCharSource &source) const |
| template<typename Source > | |
| int | MatchOpMatch (const Source &source) const |
| template<typename Source > | |
| int | MatchOpNot (const Source &source) const |
| template<typename Source > | |
| int | MatchOpOr (const Source &source) const |
| template<typename Source > | |
| int | MatchOpRange (const Source &source) const |
| template<typename Source > | |
| int | MatchOpSeq (const Source &source) const |
| template<typename Source > | |
| int | MatchUnchecked (const Source &source) const |
| RegEx (REGEX_OP op) | |
Private Attributes | |
| char | m_a |
| REGEX_OP | m_op |
| std::vector< RegEx > | m_params |
| char | m_z |
Friends | |
| RegEx | operator! (const RegEx &ex) |
| RegEx | operator&& (const RegEx &ex1, const RegEx &ex2) |
| RegEx | operator+ (const RegEx &ex1, const RegEx &ex2) |
| RegEx | operator|| (const RegEx &ex1, const RegEx &ex2) |
| YAML_PM::RegEx::RegEx | ( | char | ch | ) |
| YAML_PM::RegEx::RegEx | ( | char | a, |
| char | z | ||
| ) |
| YAML_PM::RegEx::RegEx | ( | const std::string & | str, |
| REGEX_OP | op = REGEX_SEQ |
||
| ) |
| YAML_PM::RegEx::~RegEx | ( | ) | [inline] |
| YAML_PM::RegEx::RegEx | ( | REGEX_OP | op | ) | [private] |
| bool YAML_PM::RegEx::IsValidSource | ( | const Source & | source | ) | const [inline, private] |
Definition at line 55 of file regeximpl.h.
| bool YAML_PM::RegEx::IsValidSource | ( | const StringCharSource & | source | ) | const [inline, private] |
Definition at line 61 of file regeximpl.h.
| int YAML_PM::RegEx::Match | ( | const std::string & | str | ) | const [inline] |
Definition at line 42 of file regeximpl.h.
| int YAML_PM::RegEx::Match | ( | const Stream & | in | ) | const [inline] |
Definition at line 48 of file regeximpl.h.
| int YAML_PM::RegEx::Match | ( | const Source & | source | ) | const [inline] |
Definition at line 73 of file regeximpl.h.
| bool YAML_PM::RegEx::Matches | ( | char | ch | ) | const [inline] |
Definition at line 16 of file regeximpl.h.
| bool YAML_PM::RegEx::Matches | ( | const std::string & | str | ) | const [inline] |
Definition at line 22 of file regeximpl.h.
| bool YAML_PM::RegEx::Matches | ( | const Stream & | in | ) | const [inline] |
Definition at line 26 of file regeximpl.h.
| bool YAML_PM::RegEx::Matches | ( | const Source & | source | ) | const [inline] |
Definition at line 31 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpAnd | ( | const Source & | source | ) | const [inline, private] |
Definition at line 149 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpEmpty | ( | const Source & | source | ) | const [inline, private] |
Definition at line 108 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpEmpty | ( | const StringCharSource & | source | ) | const [inline, private] |
Definition at line 113 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpMatch | ( | const Source & | source | ) | const [inline, private] |
Definition at line 119 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpNot | ( | const Source & | source | ) | const [inline, private] |
Definition at line 163 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpOr | ( | const Source & | source | ) | const [inline, private] |
Definition at line 135 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpRange | ( | const Source & | source | ) | const [inline, private] |
Definition at line 127 of file regeximpl.h.
| int YAML_PM::RegEx::MatchOpSeq | ( | const Source & | source | ) | const [inline, private] |
Definition at line 173 of file regeximpl.h.
| int YAML_PM::RegEx::MatchUnchecked | ( | const Source & | source | ) | const [inline, private] |
Definition at line 79 of file regeximpl.h.
char YAML_PM::RegEx::m_a [private] |
REGEX_OP YAML_PM::RegEx::m_op [private] |
std::vector<RegEx> YAML_PM::RegEx::m_params [private] |
char YAML_PM::RegEx::m_z [private] |