Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
458 B
Raw Blame
/* This file is part of the KDE project
   SPDX-FileCopyrightText: 2000 Werner Trobin <[email protected]>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#include "KisTemplates.h"

#include <QString>
#include <QChar>

namespace KisTemplates
{
QString trimmed(const QString &string)
{

    QString ret;
    for (int i = 0; i < string.length(); ++i) {
        QChar tmp(string[i]);
        if (!tmp.isSpace())
            ret += tmp;
    }
    return ret;
}
}