2017-06-07 10:09:24 +02:00
|
|
|
#pragma once
|
2017-01-06 23:28:48 +01:00
|
|
|
|
2017-06-11 09:31:45 +02:00
|
|
|
#include "concurrentmap.hpp"
|
|
|
|
#include "messages/lazyloadedimage.hpp"
|
2017-01-18 04:52:47 +01:00
|
|
|
|
2017-01-06 23:28:48 +01:00
|
|
|
#include <QObject>
|
2017-01-11 18:52:09 +01:00
|
|
|
#include <QRegularExpression>
|
2017-01-06 23:28:48 +01:00
|
|
|
#include <QString>
|
2017-06-07 10:09:24 +02:00
|
|
|
|
2017-01-07 20:43:55 +01:00
|
|
|
#include <unordered_map>
|
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
2017-01-18 21:30:23 +01:00
|
|
|
|
2017-06-26 16:41:20 +02:00
|
|
|
struct EmojiData {
|
|
|
|
QString value;
|
|
|
|
QString code;
|
|
|
|
};
|
|
|
|
|
2017-01-06 23:28:48 +01:00
|
|
|
class Emojis
|
|
|
|
{
|
|
|
|
public:
|
2017-01-11 18:52:09 +01:00
|
|
|
static QString replaceShortCodes(const QString &text);
|
2017-01-07 20:43:55 +01:00
|
|
|
|
2017-01-06 23:28:48 +01:00
|
|
|
private:
|
2017-01-18 04:33:30 +01:00
|
|
|
static QRegularExpression findShortCodesRegex;
|
2017-01-06 23:28:48 +01:00
|
|
|
};
|
|
|
|
|
2017-06-07 10:09:24 +02:00
|
|
|
} // namespace chatterino
|