Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/FancyString.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | SPDX-FileCopyrightText: 2012-2020 Harald Sitter <sitter@kde.org> | ||||
3 | SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL | ||||
4 | */ | ||||
5 | | ||||
6 | #include "FancyString.h" | ||||
7 | | ||||
8 | namespace FancyString | ||||
9 | { | ||||
10 | | ||||
11 | QString fromUgly(const QString &string) | ||||
12 | { | ||||
13 | QString ugly(string); | ||||
14 | ugly.replace(QStringLiteral("(TM)"), QChar(8482)); | ||||
15 | ugly.replace(QStringLiteral("(R)"), QChar(174)); | ||||
16 | return ugly.simplified(); | ||||
17 | } | ||||
18 | | ||||
19 | } // namespace FancyString |