class EE::System::LuaPattern::Match

#include <luapattern.hpp>

class Match {
public:
    // classes

    class iterator;

    // construction

    Match(LuaPattern& r, const char* string, bool ownPattern = false);
    Match(LuaPattern& r, const std::string& string, bool ownPattern = false);
    Match(const LuaPattern::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();
};