Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qstringfwd.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include <QtCore/qglobal.h>
5
6#ifndef QSTRINGFWD_H
7#define QSTRINGFWD_H
8
10
11#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0)
12# define QT_BEGIN_HAS_CHAR8_T_NAMESPACE inline namespace q_has_char8_t {
13# define QT_BEGIN_NO_CHAR8_T_NAMESPACE namespace q_no_char8_t {
14#else
15# define QT_BEGIN_HAS_CHAR8_T_NAMESPACE namespace q_has_char8_t {
16# define QT_BEGIN_NO_CHAR8_T_NAMESPACE inline namespace q_no_char8_t {
17#endif
18#define QT_END_HAS_CHAR8_T_NAMESPACE }
19#define QT_END_NO_CHAR8_T_NAMESPACE }
20
21// declare namespaces:
26
27class QByteArray;
28class QByteArrayView;
29#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC)
32#else
33class QLatin1String;
35#endif
36class QStringView;
37template <bool> class QBasicUtf8StringView;
38class QAnyStringView;
39class QChar;
42
43#ifndef Q_QDOC
44// ### Qt 7: remove the non-char8_t version of QUtf8StringView
46using QUtf8StringView = QBasicUtf8StringView<false>;
48
50using QUtf8StringView = QBasicUtf8StringView<true>;
52#endif // Q_QDOC
53
55
56#endif // QSTRINGFWD_H
\inmodule QtCore
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
constexpr QLatin1StringView() noexcept
\inmodule QtCore \reentrant
\inmodule QtCore \reentrant
\inmodule QtCore
Definition qstringview.h:78
Combined button and popup list for selecting options.
#define QT_END_NO_CHAR8_T_NAMESPACE
Definition qstringfwd.h:19
QLatin1StringView QLatin1String
Definition qstringfwd.h:31
#define QT_END_HAS_CHAR8_T_NAMESPACE
Definition qstringfwd.h:18
#define QT_BEGIN_HAS_CHAR8_T_NAMESPACE
Definition qstringfwd.h:12
#define QT_BEGIN_NO_CHAR8_T_NAMESPACE
Definition qstringfwd.h:13