class EE::System::PatternMatcher::Match

#include <patternmatcher.hpp>

class Match {
public:
    // classes

    class iterator;

    // construction

    Match(PatternMatcher& r, const char* string, bool ownPattern = false);
    Match(PatternMatcher& r, const std::string& string, bool ownPattern = false);
    Match(const PatternMatcher::Match& other);
    ~Match();

    // methods

    Match& operator=(const Match& other);
    bool matches();
    bool subst(std::string& res);
    void next();
    std::string group(int idx = -1) const;
    std::string_view groupView(int idx = -1) const;
    bool range(int idx, int& start, int& end) const;
    std::string operator[](int index) const;
    iterator begin();
    iterator end();
};