45 Expression(
const std::string& pattern) noexcept;
50 std::vector<std::shared_ptr<Matcher>>&
matchers() noexcept;
65 const
std::cmatch&
apply(
std::string_view::const_iterator begin,
std::string_view::const_iterator end);
static std::cmatch match
Object used to store regex matches.
Class used to represent an expression (regex)
Class used to represent a matcher, that is a way to convert expressions matches into a metric...
std::vector< std::shared_ptr< Matcher > > & matchers() noexcept
Returns the array of the receiver's matchers.
const std::cmatch & apply(std::string_view::const_iterator begin, std::string_view::const_iterator end)
Apply the regex and find matches in the given string.
Expression(const std::string &pattern) noexcept
Construct a new Expression object.
std::vector< std::shared_ptr< Matcher > > matchers_
Matchers associated with the receiver.
std::regex regex_
Regex object.