mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
b6ee2280d2
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
24 lines
514 B
C++
24 lines
514 B
C++
#pragma once
|
|
|
|
#include <QColor>
|
|
#include <QString>
|
|
|
|
namespace chatterino {
|
|
|
|
QString generateUuid();
|
|
|
|
QString formatRichLink(const QString &url, bool file = false);
|
|
|
|
QString formatRichNamedLink(const QString &url, const QString &name,
|
|
bool file = false);
|
|
|
|
QString shortenString(const QString &str, unsigned maxWidth = 50);
|
|
|
|
QString localizeNumbers(const int &number);
|
|
|
|
QString kFormatNumbers(const int &number);
|
|
|
|
QColor getRandomColor(const QString &userId);
|
|
|
|
} // namespace chatterino
|