mirror-chatterino2/src/common/LinkParser.hpp
2019-12-29 16:42:20 +01:00

22 lines
325 B
C++

#pragma once
#include <QRegularExpressionMatch>
#include <QString>
namespace chatterino {
class LinkParser
{
public:
explicit LinkParser(const QString &unparsedString);
bool hasMatch() const;
QString getCaptured() const;
private:
bool hasMatch_{false};
QString match_;
};
} // namespace chatterino