Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtCore/qstringfwd.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (C) 2022 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 
0004 #include <QtCore/qglobal.h>
0005 
0006 #ifndef QSTRINGFWD_H
0007 #define QSTRINGFWD_H
0008 
0009 QT_BEGIN_NAMESPACE
0010 
0011 #if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0)
0012 # define QT_BEGIN_HAS_CHAR8_T_NAMESPACE inline namespace q_has_char8_t {
0013 # define QT_BEGIN_NO_CHAR8_T_NAMESPACE namespace q_no_char8_t {
0014 #else
0015 # define QT_BEGIN_HAS_CHAR8_T_NAMESPACE namespace q_has_char8_t {
0016 # define QT_BEGIN_NO_CHAR8_T_NAMESPACE inline namespace q_no_char8_t {
0017 #endif
0018 #define QT_END_HAS_CHAR8_T_NAMESPACE }
0019 #define QT_END_NO_CHAR8_T_NAMESPACE }
0020 
0021 // declare namespaces:
0022 QT_BEGIN_HAS_CHAR8_T_NAMESPACE
0023 QT_END_HAS_CHAR8_T_NAMESPACE
0024 QT_BEGIN_NO_CHAR8_T_NAMESPACE
0025 QT_END_NO_CHAR8_T_NAMESPACE
0026 
0027 class QByteArray;
0028 class QByteArrayView;
0029 #if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC)
0030 class QLatin1StringView;
0031 using QLatin1String = QLatin1StringView;
0032 #else
0033 class QLatin1String;
0034 using QLatin1StringView = QLatin1String;
0035 #endif
0036 class QStringView;
0037 template <bool> class QBasicUtf8StringView;
0038 class QAnyStringView;
0039 class QChar;
0040 class QRegularExpression;
0041 class QRegularExpressionMatch;
0042 
0043 #ifndef Q_QDOC
0044 // ### Qt 7: remove the non-char8_t version of QUtf8StringView
0045 QT_BEGIN_NO_CHAR8_T_NAMESPACE
0046 using QUtf8StringView = QBasicUtf8StringView<false>;
0047 QT_END_NO_CHAR8_T_NAMESPACE
0048 
0049 QT_BEGIN_HAS_CHAR8_T_NAMESPACE
0050 using QUtf8StringView = QBasicUtf8StringView<true>;
0051 QT_END_HAS_CHAR8_T_NAMESPACE
0052 #endif // Q_QDOC
0053 
0054 QT_END_NAMESPACE
0055 
0056 #endif // QSTRINGFWD_H