tdesktop/Telegram/SourceFiles/ui/text/text_utilities.h

27 lines
526 B
C
Raw Normal View History

2019-06-12 15:26:04 +02:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Ui {
namespace Text {
TextWithEntities Bold(const QString &text);
inline auto ToBold() {
return rpl::map(Bold);
}
inline auto ToUpper() {
return rpl::map([](QString &&text) {
return std::move(text).toUpper();
});
}
} // namespace Text
} // namespace Ui