Chatterino
LinkParser.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <QRegularExpressionMatch>
4 #include <QString>
5 
6 namespace chatterino {
7 
8 class LinkParser
9 {
10 public:
11  explicit LinkParser(const QString &unparsedString);
12 
13  bool hasMatch() const;
14  QString getCaptured() const;
15 
16 private:
17  bool hasMatch_{false};
18  QString match_;
19 };
20 
21 } // namespace chatterino
Definition: Application.cpp:48