Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qhsts.cpp File Reference

(15b0bd69ff2a3ac967ddb98b5fc3c3ce8c3d5b4b)

#include "qhsts_p.h"
#include "qhttpheaders.h"
#include "QtCore/private/qipaddress_p.h"
#include "QtCore/qlist.h"
+ Include dependency graph for qhsts.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE bool is_valid_domain_name (const QString &host)
 
static bool isCHAR (int c)
 
static bool isCTL (int c)
 
static bool isLWS (int c)
 
static bool isTEXT (char c)
 
static bool isSeparator (char c)
 
static QByteArrayView unescapeMaxAge (QByteArrayView value)
 
static bool isTOKEN (char c)
 

Function Documentation

◆ is_valid_domain_name()

static QT_BEGIN_NAMESPACE bool is_valid_domain_name ( const QString & host)
static

Definition at line 17 of file qhsts.cpp.

References QString::constBegin(), QString::constEnd(), parseIp6(), and QString::size().

Referenced by QHstsCache::isKnownHost().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isCHAR()

static bool isCHAR ( int c)
static

Definition at line 244 of file qhsts.cpp.

Referenced by isTOKEN().

+ Here is the caller graph for this function:

◆ isCTL()

static bool isCTL ( int c)
static

Definition at line 250 of file qhsts.cpp.

Referenced by isTEXT(), and isTOKEN().

+ Here is the caller graph for this function:

◆ isLWS()

static bool isLWS ( int c)
static

Definition at line 258 of file qhsts.cpp.

Referenced by isSeparator(), isTEXT(), and parseHttpOptionHeader().

+ Here is the caller graph for this function:

◆ isSeparator()

static bool isSeparator ( char c)
static

Definition at line 280 of file qhsts.cpp.

References isLWS().

Referenced by isTOKEN(), QComboBoxDelegate::paint(), parseHttpOptionHeader(), QWindowsMenuItem::setIsSeparator(), QIOSMenuItem::setIsSeparator(), and QComboBoxDelegate::sizeHint().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isTEXT()

static bool isTEXT ( char c)
static

Definition at line 273 of file qhsts.cpp.

References isCTL(), and isLWS().

+ Here is the call graph for this function:

◆ isTOKEN()

static bool isTOKEN ( char c)
static

Definition at line 300 of file qhsts.cpp.

References isCHAR(), isCTL(), and isSeparator().

+ Here is the call graph for this function:

◆ unescapeMaxAge()

static QByteArrayView unescapeMaxAge ( QByteArrayView value)
static

Definition at line 291 of file qhsts.cpp.

References Q_ASSERT.