Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qnetworkcookie.cpp File Reference

(94df2e81324b4a1e8703fa5011b299a0635450b2)

#include "qnetworkcookie.h"
#include "qnetworkcookie_p.h"
#include "qnetworkrequest.h"
#include "qnetworkreply.h"
#include "QtCore/qbytearray.h"
#include "QtCore/qdatetime.h"
#include "QtCore/qdebug.h"
#include "QtCore/qlist.h"
#include "QtCore/qlocale.h"
#include <QtCore/qregularexpression.h>
#include "QtCore/qstring.h"
#include "QtCore/qstringlist.h"
#include "QtCore/qtimezone.h"
#include "QtCore/qurl.h"
#include "QtNetwork/qhostaddress.h"
#include "private/qobject_p.h"
#include <utility>
#include "moc_qnetworkcookie.cpp"
Include dependency graph for qnetworkcookie.cpp:

Go to the source code of this file.

Macros

#define ADAY   1
#define AMONTH   2
#define AYEAR   4

Functions

static std::pair< QByteArray, QByteArraynextField (QByteArrayView text, int &position, bool isNameValue)
static bool isNumber (char s)
static bool isTerminator (char c)
static bool isValueSeparator (char c)
static bool isWhitespace (char c)
static bool checkStaticArray (int &val, QByteArrayView dateString, int at, const char *array, int size)
static QDateTime parseDateString (QByteArrayView dateString)
QDebug operator<< (QDebug s, const QNetworkCookie &cookie)

Variables

static const char zones []
static const int zoneOffsets [] = {-8, -8, -7, -7, -6, -6, -5, -5, -4, -3, 0, 0, 0, 1, 2, 9 }
static const char months []

Macro Definition Documentation

◆ ADAY

#define ADAY   1

Definition at line 608 of file qnetworkcookie.cpp.

◆ AMONTH

#define AMONTH   2

Definition at line 609 of file qnetworkcookie.cpp.

◆ AYEAR

#define AYEAR   4

Definition at line 610 of file qnetworkcookie.cpp.

Function Documentation

◆ checkStaticArray()

bool checkStaticArray ( int & val,
QByteArrayView dateString,
int at,
const char * array,
int size )
static

Definition at line 584 of file qnetworkcookie.cpp.

◆ isNumber()

bool isNumber ( char s)
inlinestatic

Definition at line 572 of file qnetworkcookie.cpp.

◆ isTerminator()

bool isTerminator ( char c)
inlinestatic

Definition at line 575 of file qnetworkcookie.cpp.

Referenced by isValueSeparator().

Here is the caller graph for this function:

◆ isValueSeparator()

bool isValueSeparator ( char c)
inlinestatic

Definition at line 578 of file qnetworkcookie.cpp.

References isTerminator().

Here is the call graph for this function:

◆ isWhitespace()

bool isWhitespace ( char c)
inlinestatic

Definition at line 581 of file qnetworkcookie.cpp.

◆ nextField()

std::pair< QByteArray, QByteArray > nextField ( QByteArrayView text,
int & position,
bool isNameValue )
static

Definition at line 380 of file qnetworkcookie.cpp.

◆ operator<<()

QDebug operator<< ( QDebug s,
const QNetworkCookie & cookie )

Definition at line 1092 of file qnetworkcookie.cpp.

◆ parseDateString()

QDateTime parseDateString ( QByteArrayView dateString)
static

Definition at line 631 of file qnetworkcookie.cpp.

References zoneOffsets.

Variable Documentation

◆ months

const char months
static
Initial value:
=
"jan\0"
"feb\0"
"mar\0"
"apr\0"
"may\0"
"jun\0"
"jul\0"
"aug\0"
"sep\0"
"oct\0"
"nov\0"
"dec\0"
"\0"

Definition at line 557 of file qnetworkcookie.cpp.

◆ zoneOffsets

const int zoneOffsets = {-8, -8, -7, -7, -6, -6, -5, -5, -4, -3, 0, 0, 0, 1, 2, 9 }
static

Definition at line 555 of file qnetworkcookie.cpp.

Referenced by parseDateString().

◆ zones

const char zones
static
Initial value:
=
"pst\0"
"pdt\0"
"mst\0"
"mdt\0"
"cst\0"
"cdt\0"
"est\0"
"edt\0"
"ast\0"
"nst\0"
"gmt\0"
"utc\0"
"bst\0"
"met\0"
"eet\0"
"jst\0"
"\0"

Definition at line 537 of file qnetworkcookie.cpp.