mirror of
https://github.com/vale981/tdesktop
synced 2025-03-10 04:56:43 -04:00
27 lines
526 B
C
27 lines
526 B
C
![]() |
/*
|
||
|
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
|