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
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 137 of file qurlquery.cpp.

Constructor & Destructor Documentation

◆ QUrlQueryPrivate()

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

Definition at line 140 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 150 of file qurlquery.cpp.

References QList< T >::append(), itemList, 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 161 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 159 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 152 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 212 of file qurlquery.cpp.

References decode, QUrl::DecodeReserved, output, and qt_urlRecode().

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 234 of file qurlquery.cpp.

References encode, QUrl::EncodeDelimiters, idempotentRecodeToUser(), output, and qt_urlRecode().

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 258 of file qurlquery.cpp.

References begin(), decode, QUrl::DecodeReserved, pos, qt_urlRecode(), and Qt::Uninitialized.

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

QChar QUrlQueryPrivate::pairDelimiter

◆ valueDelimiter

QChar QUrlQueryPrivate::valueDelimiter

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