![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QtCore/qchar.h>#include <QtCore/qcompare.h>#include <QtCore/qcontainerfwd.h>#include <QtCore/qbytearray.h>#include <QtCore/qstringfwd.h>#include <QtCore/qstringalgorithms.h>#include <string>#include <string_view>#include <QtCore/q20type_traits.h>Go to the source code of this file.
Namespaces | |
| namespace | QtPrivate |
| namespace | Qt |
| namespace | Qt::Literals |
| namespace | Qt::Literals::StringLiterals |
Macros | |
| #define | QSTRINGVIEW_REFUSES_QSTRINGREF 1 |
Functions | |
| Q_DECLARE_TYPEINFO (QStringView, Q_PRIMITIVE_TYPE) | |
| template<typename QStringLike, typename std::enable_if< std::is_same< QStringLike, QString >::value, bool >::type = true> | |
| QStringView | qToStringViewIgnoringNull (const QStringLike &ss) noexcept |
| constexpr QStringView | Qt::Literals::StringLiterals::operator""_sv (const char16_t *str, size_t sizesize) noexcept |
| #define QSTRINGVIEW_REFUSES_QSTRINGREF 1 |
| Q_DECLARE_TYPEINFO | ( | QStringView | , |
| Q_PRIMITIVE_TYPE | ) |
|
inlinenoexcept |
Convert s to a QStringView ignoring {s.isNull()}.
Returns a string view that references {s}' data, but is never null.
This is a faster way to convert a QString to a QStringView, if null QStrings can legitimately be treated as empty ones.
Definition at line 530 of file qstringview.h.