mirror-chatterino2/src/common/LinkParser.hpp

22 lines
325 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:
bool hasMatch_{false};
QString match_;
};
} // namespace chatterino