Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QUrlQueryPrivate Class Reference
+ Inheritance diagram for QUrlQueryPrivate:
+ Collaboration diagram for QUrlQueryPrivate:

Public Member Functions

 QUrlQueryPrivate (const QString &query=QString())
 
QString recodeFromUser (const QString &input) const
 
QString recodeToUser (const QString &input, QUrl::ComponentFormattingOptions encoding) const
 
void setQuery (const QString &query)
 
void addQueryItem (const QString &key, const QString &value)
 
int findRecodedKey (const QString &key, int from=0) const
 
Map::const_iterator findKey (const QString &key) const
 
Map::iterator findKey (const QString &key)
 
- Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
 
QSharedDataoperator= (const QSharedData &)=delete
 
 ~QSharedData ()=default
 

Public Attributes

Map itemList
 
QChar valueDelimiter
 
QChar pairDelimiter
 
- Public Attributes inherited from QSharedData
QAtomicInt ref
 

Detailed Description

Definition at line 135 of file qurlquery.cpp.

Constructor & Destructor Documentation

◆ QUrlQueryPrivate()

QUrlQueryPrivate::QUrlQueryPrivate ( const QString query = QString())
inline

Definition at line 138 of file qurlquery.cpp.

References setQuery().

+ Here is the call graph for this function:

Member Function Documentation

◆ addQueryItem()

void QUrlQueryPrivate::addQueryItem ( const QString key,
const QString value 
)
inline

Definition at line 148 of file qurlquery.cpp.

References QList< T >::append(), itemList, qMakePair(), and recodeFromUser().

Referenced by QUrlQuery::addQueryItem(), and QUrlQuery::setQueryItems().

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

◆ findKey() [1/2]

Map::iterator QUrlQueryPrivate::findKey ( const QString key)
inline

Definition at line 159 of file qurlquery.cpp.

References QList< T >::begin(), findRecodedKey(), itemList, and recodeFromUser().

+ Here is the call graph for this function:

◆ findKey() [2/2]

Map::const_iterator QUrlQueryPrivate::findKey ( const QString key) const
inline

Definition at line 157 of file qurlquery.cpp.

References QList< T >::constBegin(), findRecodedKey(), itemList, and recodeFromUser().

Referenced by QUrlQuery::hasQueryItem(), and QUrlQuery::queryItemValue().

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

◆ findRecodedKey()

int QUrlQueryPrivate::findRecodedKey ( const QString key,
int  from = 0 
) const
inline

Definition at line 150 of file qurlquery.cpp.

References QList< T >::at(), i, itemList, and QList< T >::size().

Referenced by QUrlQuery::allQueryItemValues(), findKey(), and findKey().

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

◆ recodeFromUser()

QString QUrlQueryPrivate::recodeFromUser ( const QString input) const
inline

Definition at line 210 of file qurlquery.cpp.

References decode, QUrl::DecodeReserved, output, pairDelimiter, qt_urlRecode(), QChar::unicode(), and valueDelimiter.

Referenced by addQueryItem(), QUrlQuery::allQueryItemValues(), findKey(), and findKey().

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

◆ recodeToUser()

QString QUrlQueryPrivate::recodeToUser ( const QString input,
QUrl::ComponentFormattingOptions  encoding 
) const
inline

Definition at line 232 of file qurlquery.cpp.

References encode, QUrl::EncodeDelimiters, idempotentRecodeToUser(), output, pairDelimiter, qt_urlRecode(), QChar::unicode(), and valueDelimiter.

Referenced by QUrlQuery::allQueryItemValues(), QUrlQuery::queryItems(), and QUrlQuery::queryItemValue().

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

◆ setQuery()

void QUrlQueryPrivate::setQuery ( const QString query)

Definition at line 256 of file qurlquery.cpp.

References QList< T >::append(), begin(), QList< T >::clear(), decode, QUrl::DecodeReserved, itemList, pairDelimiter, pos, qMakePair(), qt_urlRecode(), QChar::unicode(), Qt::Uninitialized, and valueDelimiter.

Referenced by QUrlQueryPrivate(), and QUrlQuery::setQuery().

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

Member Data Documentation

◆ itemList

◆ pairDelimiter

◆ valueDelimiter


The documentation for this class was generated from the following file: