![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Typedefs | |
typedef QVarLengthArray< char, 64 > | Buffer |
typedef quint32 | IPv4Address |
typedef quint8 | IPv6Address[16] |
Functions | |
static QString | number (quint8 val) |
static const QChar * | checkedToAscii (Buffer &buffer, const QChar *begin, const QChar *end) |
static bool | parseIp4Internal (IPv4Address &address, const char *ptr, bool acceptLeadingZero) |
bool | parseIp4 (IPv4Address &address, const QChar *begin, const QChar *end) |
void | toString (QString &appendTo, IPv4Address address) |
const QChar * | parseIp6 (IPv6Address &address, const QChar *begin, const QChar *end) |
static QChar | toHex (uchar c) |
void | toString (QString &appendTo, const IPv6Address address) |
typedef QVarLengthArray< char, 64 > QIPAddressUtils::Buffer |
Definition at line 23 of file qipaddress.cpp.
typedef quint32 QIPAddressUtils::IPv4Address |
Definition at line 26 of file qipaddress_p.h.
typedef quint8 QIPAddressUtils::IPv6Address[16] |
Definition at line 27 of file qipaddress_p.h.
|
static |
Definition at line 24 of file qipaddress.cpp.
Definition at line 17 of file qipaddress.cpp.
bool QIPAddressUtils::parseIp4 | ( | IPv4Address & | address, |
const QChar * | begin, | ||
const QChar * | end ) |
Definition at line 43 of file qipaddress.cpp.
References parseIp4Internal().
|
static |
Definition at line 54 of file qipaddress.cpp.
Referenced by parseIp4(), and parseIp6().
const QChar * QIPAddressUtils::parseIp6 | ( | IPv6Address & | address, |
const QChar * | begin, | ||
const QChar * | end ) |
Parses one IPv6 address from begin to end and stores the representation in address. Returns null if everything was parsed correctly, or the pointer to the first bad character where parsing failed. If the parsing failed for a reason not related to a particular character, returns end.
Definition at line 115 of file qipaddress.cpp.
References parseIp4Internal().
Definition at line 216 of file qipaddress.cpp.
void QIPAddressUtils::toString | ( | QString & | appendTo, |
const IPv6Address | address ) |
Definition at line 221 of file qipaddress.cpp.
void QIPAddressUtils::toString | ( | QString & | appendTo, |
IPv4Address | address ) |
Definition at line 95 of file qipaddress.cpp.