2018-03-05 03:55:39 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2019-01-09 08:15:34 -06:00
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2018-03-05 03:55:39 -06:00
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-03-11 06:24:01 -06:00
|
|
|
#include <QString>
|
|
|
|
|
2020-09-02 08:04:48 -05:00
|
|
|
class QStringList;
|
2018-03-05 03:55:39 -06:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2018-03-05 03:55:39 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
namespace RiaTextStringTools
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
bool compare( const QString& expected, const QString& actual );
|
|
|
|
QString trimAndRemoveDoubleSpaces( const QString& s );
|
2020-10-09 01:38:18 -05:00
|
|
|
QString commonRoot( const QStringList& stringList );
|
2021-02-26 07:27:59 -06:00
|
|
|
QString commonSuffix( const QStringList& stringList );
|
2020-10-09 01:38:18 -05:00
|
|
|
QString trimNonAlphaNumericCharacters( const QString& s );
|
2022-03-11 06:24:01 -06:00
|
|
|
|
|
|
|
QStringList splitSkipEmptyParts( const QString& text, const QString& sep = " " );
|
|
|
|
QStringList splitSkipEmptyParts( const QString& text, const QRegExp& regExp );
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
} // namespace RiaTextStringTools
|