Qt Utilities: misc/compat.h File Reference

Qt Utilities 6.22.0 Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models

Loading...
Searching...
No Matches
Namespaces | Macros | Typedefs | Functions
compat.h File Reference
`#include "../global.h"`
`#include <c++utilities/misc/traits.h>`
`#include <QtGlobal>`
`#include <QStringView>`
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

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.

## Macro Definition Documentation

## ◆ QT_UTILITIES_USE_Q_STRING_VIEW

#define QT_UTILITIES_USE_Q_STRING_VIEW

Definition at line 11 of file compat.h.