mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
a58cd3333e
Fix #60
33 lines
523 B
C++
33 lines
523 B
C++
#pragma once
|
|
|
|
#include "concurrentmap.hpp"
|
|
#include "messages/lazyloadedimage.hpp"
|
|
|
|
#include <QObject>
|
|
#include <QRegularExpression>
|
|
#include <QString>
|
|
|
|
#include <unordered_map>
|
|
|
|
namespace chatterino {
|
|
|
|
struct EmojiData {
|
|
QString value;
|
|
|
|
// what's used in the emoji-one url
|
|
QString code;
|
|
|
|
// i.e. thinking
|
|
QString shortCode;
|
|
};
|
|
|
|
class Emojis
|
|
{
|
|
public:
|
|
static QString replaceShortCodes(const QString &text);
|
|
|
|
private:
|
|
static QRegularExpression findShortCodesRegex;
|
|
};
|
|
|
|
} // namespace chatterino
|