|
Qt Utilities 6.22.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
|
#include "../global.h"#include <c++utilities/misc/traits.h>#include <QtGlobal>#include <QStringView>Go to the source code of this file.
Namespaces | |
| namespace | QtUtilities |
| ! | |
Macros | |
| #define | QT_UTILITIES_USE_Q_STRING_VIEW |
Typedefs | |
| using | QtUtilities::Utf16CharType |
| using | QtUtilities::StringView |
Functions | |
| 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. | |