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
5#ifndef QURL_P_H
6#define QURL_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience of
13// qurl*.cpp This header file may change from version to version without
14// notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/private/qglobal_p.h>
20#include "qurl.h"
21
22QT_BEGIN_NAMESPACE
23
24// in qurlrecode.cpp
25extern Q_AUTOTEST_EXPORT qsizetype qt_urlRecode(QString &appendTo, QStringView url,
26 QUrl::ComponentFormattingOptions encoding,
27 const ushort *tableModifications = nullptr);
28
29// in qurlidna.cpp
30enum AceLeadingDot { AllowLeadingDot, ForbidLeadingDot };
31enum AceOperation { ToAceOnly, NormalizeAce };
32QString Q_CORE_EXPORT qt_ACE_do(const QString &domain, AceOperation op, AceLeadingDot dot,
33 QUrl::AceProcessingOptions options = {});
34extern Q_AUTOTEST_EXPORT void qt_punycodeEncoder(QStringView in, QString *output);
35extern Q_AUTOTEST_EXPORT QString qt_punycodeDecoder(const QString &pc);
36
37QT_END_NAMESPACE
38
39#endif // QURL_P_H
40

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