1// Copyright (C) 2016 The Qt Company Ltd.
2// Copyright (C) 2016 Intel Corporation.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QURL_P_H
7#define QURL_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists for the convenience of
14// qurl*.cpp This header file may change from version to version without
15// notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtCore/private/qglobal_p.h>
21#include "qurl.h"
22
23QT_BEGIN_NAMESPACE
24
25// in qurlrecode.cpp
26extern Q_AUTOTEST_EXPORT qsizetype qt_urlRecode(QString &appendTo, QStringView url,
27 QUrl::ComponentFormattingOptions encoding,
28 const ushort *tableModifications = nullptr);
29qsizetype qt_encodeFromUser(QString &appendTo, const QString &input,
30 const ushort *tableModifications);
31
32// in qurlidna.cpp
33enum AceLeadingDot { AllowLeadingDot, ForbidLeadingDot };
34enum AceOperation { ToAceOnly, NormalizeAce };
35QString Q_CORE_EXPORT qt_ACE_do(const QString &domain, AceOperation op, AceLeadingDot dot,
36 QUrl::AceProcessingOptions options = {});
37extern Q_AUTOTEST_EXPORT void qt_punycodeEncoder(QStringView in, QString *output);
38extern Q_AUTOTEST_EXPORT QString qt_punycodeDecoder(const QString &pc);
39
40QT_END_NAMESPACE
41
42#endif // QURL_P_H
43

source code of qtbase/src/corelib/io/qurl_p.h