mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
28 lines
417 B
C++
28 lines
417 B
C++
|
#pragma once
|
||
|
|
||
|
#include <QRegularExpressionMatch>
|
||
|
#include <QString>
|
||
|
|
||
|
namespace chatterino {
|
||
|
|
||
|
class LinkParser
|
||
|
{
|
||
|
public:
|
||
|
explicit LinkParser(const QString &unparsedString);
|
||
|
|
||
|
bool hasMatch() const
|
||
|
{
|
||
|
return this->match_.hasMatch();
|
||
|
}
|
||
|
|
||
|
QString getCaptured() const
|
||
|
{
|
||
|
return this->match_.captured();
|
||
|
}
|
||
|
|
||
|
private:
|
||
|
QRegularExpressionMatch match_;
|
||
|
};
|
||
|
|
||
|
} // namespace chatterino
|