mirror-chatterino2/src/common/LinkParser.hpp

21 lines
314 B
C++
Raw Normal View History

#pragma once
#include <QRegularExpressionMatch>
#include <QString>
namespace chatterino {
class LinkParser
{
public:
explicit LinkParser(const QString &unparsedString);
2018-08-10 19:00:14 +02:00
bool hasMatch() const;
QString getCaptured() const;
private:
QRegularExpressionMatch match_;
};
} // namespace chatterino