#include "../global.h"
#include <c++utilities/misc/traits.h>
#include <QtGlobal>
#include <QStringView>
Go to the source code of this file.
|
StringView | QtUtilities::makeStringView (const QString &str) |
| Makes either a QStringView or a QStringRef depending on the Qt version.
|
|
template<typename PosType1 , typename PosType2 = PosType1, CppUtilities::Traits::EnableIf< std::is_integral< PosType1 >, std::is_signed< PosType1 >, std::is_integral< PosType2 >, std::is_signed< PosType2 > > * = nullptr> |
StringView | QtUtilities::midRef (const QString &str, PosType1 pos, PosType2 n=-1) |
| Makes either a QStringView or a QStringRef depending on the Qt version, applying "mid()" parameters.
|
|
template<class... SplitArgs> |
auto | QtUtilities::splitRef (const QString &str, SplitArgs &&...args) |
| Splits str into QStringViews, QStringRefs or QStrings depending on the Qt version.
|
|
◆ QT_UTILITIES_USE_Q_STRING_VIEW
#define QT_UTILITIES_USE_Q_STRING_VIEW |