Qt Utilities  6.4.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
Namespaces | Macros | Typedefs | Functions
compat.h File Reference
#include "../global.h"
#include <QtGlobal>
#include <QStringView>
Include dependency graph for compat.h:

Go to the source code of this file.

Namespaces

 QtUtilities
 !
 

Macros

#define QT_UTILITIES_USE_Q_STRING_VIEW
 

Typedefs

using QtUtilities::Utf16CharType = char16_t
 
using QtUtilities::StringView = QStringView
 

Functions

StringView QtUtilities::makeStringView (const QString &str)
 Makes either a QStringView or a QStringRef depending on the Qt version. More...
 
StringView QtUtilities::midRef (const QString &str, int pos, int n=-1)
 Makes either a QStringView or a QStringRef depending on the Qt version, applying "mid()" parameters. More...
 
template<class... SplitArgs>
auto QtUtilities::splitRef (const QString &str, SplitArgs &&...args)
 Splits str into QStringViews, QStringRefs or QStrings depending on the Qt version. More...
 

Macro Definition Documentation

◆ QT_UTILITIES_USE_Q_STRING_VIEW

#define QT_UTILITIES_USE_Q_STRING_VIEW

Definition at line 9 of file compat.h.