Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qipaddress_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 Intel Corporation.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QIPADDRESS_P_H
6
#
define
QIPADDRESS_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 purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
private
/
qglobal_p
.
h
>
20
#
include
"qstring.h"
21
22
QT_BEGIN_NAMESPACE
23
24
namespace
QIPAddressUtils
{
25
26
typedef
quint32
IPv4Address
;
27
typedef
quint8
IPv6Address
[16];
28
29
Q_CORE_EXPORT
bool
parseIp4
(
IPv4Address
&address,
const
QChar *begin,
const
QChar *end);
30
Q_CORE_EXPORT
const
QChar *
parseIp6
(
IPv6Address
&
address
,
const
QChar
*
begin
,
const
QChar
*
end
);
31
Q_CORE_EXPORT
void
toString
(QString &appendTo,
IPv4Address
address);
32
Q_CORE_EXPORT
void
toString
(QString &appendTo,
const
IPv6Address
address);
33
34
}
// namespace
35
36
QT_END_NAMESPACE
37
38
#
endif
// QIPADDRESS_P_H
QVarLengthArray
Definition
qvarlengtharray.h:291
QIPAddressUtils
Definition
qipaddress.cpp:15
QIPAddressUtils::parseIp4Internal
static bool parseIp4Internal(IPv4Address &address, const char *ptr, bool acceptLeadingZero)
Definition
qipaddress.cpp:54
QIPAddressUtils::IPv6Address
quint8 IPv6Address[16]
Definition
qipaddress_p.h:27
QIPAddressUtils::number
static QString number(quint8 val)
Definition
qipaddress.cpp:17
QIPAddressUtils::toString
void toString(QString &appendTo, IPv4Address address)
Definition
qipaddress.cpp:95
QIPAddressUtils::parseIp6
const QChar * parseIp6(IPv6Address &address, const QChar *begin, const QChar *end)
Definition
qipaddress.cpp:115
QIPAddressUtils::toHex
static QChar toHex(uchar c)
Definition
qipaddress.cpp:220
QIPAddressUtils::parseIp4
bool parseIp4(IPv4Address &address, const QChar *begin, const QChar *end)
Definition
qipaddress.cpp:43
QIPAddressUtils::IPv4Address
quint32 IPv4Address
Definition
qipaddress_p.h:26
QIPAddressUtils::toString
void toString(QString &appendTo, const IPv6Address address)
Definition
qipaddress.cpp:225
QIPAddressUtils::Buffer
QVarLengthArray< char, 64 > Buffer
Definition
qipaddress.cpp:23
QIPAddressUtils::checkedToAscii
static const QChar * checkedToAscii(Buffer &buffer, const QChar *begin, const QChar *end)
Definition
qipaddress.cpp:24
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QStringLiteral
#define QStringLiteral(str)
Definition
qstring.h:1865
qtbase
src
corelib
io
qipaddress_p.h
Generated on
for Qt by
1.18.0