2017-07-19 18:37:49 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
2018-01-03 10:23:14 +00:00
|
|
|
the official desktop application for the Telegram messaging service.
|
2017-07-19 18:37:49 +00:00
|
|
|
|
2018-01-03 10:23:14 +00:00
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
2017-07-19 18:37:49 +00:00
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "codegen/common/logging.h"
|
|
|
|
#include "codegen/emoji/data.h"
|
|
|
|
#include <QtCore/QVector>
|
|
|
|
|
|
|
|
namespace codegen {
|
|
|
|
namespace emoji {
|
|
|
|
|
|
|
|
struct Replace {
|
|
|
|
Id id;
|
|
|
|
QString replacement;
|
|
|
|
QVector<QString> words;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct Replaces {
|
|
|
|
Replaces(const QString &filename) : filename(filename) {
|
|
|
|
}
|
|
|
|
QString filename;
|
|
|
|
QVector<Replace> list;
|
|
|
|
};
|
|
|
|
|
|
|
|
Replaces PrepareReplaces(const QString &filename);
|
|
|
|
bool CheckAndConvertReplaces(Replaces &replaces, const Data &data);
|
|
|
|
|
|
|
|
} // namespace emoji
|
|
|
|
} // namespace codegen
|