2019-07-23 22:18:36 +02:00
|
|
|
#pragma once
|
|
|
|
|
2019-08-10 13:47:17 +02:00
|
|
|
#include <QString>
|
2019-07-23 22:18:36 +02:00
|
|
|
|
2019-10-07 15:46:08 +02:00
|
|
|
namespace chatterino {
|
2019-07-23 22:18:36 +02:00
|
|
|
|
2019-09-18 16:31:51 +02:00
|
|
|
QString generateUuid();
|
2019-07-23 22:18:36 +02:00
|
|
|
|
2019-09-18 16:31:51 +02:00
|
|
|
QString formatRichLink(const QString &url, bool file = false);
|
2019-07-23 22:18:36 +02:00
|
|
|
|
2019-09-18 16:31:51 +02:00
|
|
|
QString formatRichNamedLink(const QString &url, const QString &name,
|
|
|
|
bool file = false);
|
2019-07-23 22:18:36 +02:00
|
|
|
|
2019-08-10 13:47:17 +02:00
|
|
|
QString shortenString(const QString &str, unsigned maxWidth = 50);
|
2019-07-23 22:18:36 +02:00
|
|
|
|
2019-10-07 15:46:08 +02:00
|
|
|
} // namespace chatterino
|